src/main/java/org/nameapi/client/lib/NameApiModeFactory.java
@NotNull
    public static Mode minimal(@NotNull String apiKey, @NotNull Host host, @NotNull RestPortUrlFactory portUrlFactory) {
        return Mode.create()
                .with(RestKeys.REST_PORT_URL_FACTORY, portUrlFactory)
//                .with(ExceptionTranslationExtension.TRANSLATOR, new CombinedExceptionTranslator(new DefaultClientExceptionTranslator(), new SoapFaultExceptionTranslator()))
                .with(Keys.HOST, host)
                .with(NameApiKeys.API_KEY, apiKey);
    }
@NotNull
    public static Mode minimal(@NotNull String apiKey, @NotNull Host host, @NotNull RestPortUrlFactory portUrlFactory) {
        return Mode.create()
                .with(RestKeys.REST_PORT_URL_FACTORY, portUrlFactory)
//                .with(ExceptionTranslationExtension.TRANSLATOR, new CombinedExceptionTranslator(new DefaultClientExceptionTranslator(), new SoapFaultExceptionTranslator()))
                .with(Keys.HOST, host)
                .with(NameApiKeys.API_KEY, apiKey);
    }
@ NotNull public static Mode minimal ( @ NotNull String apiKey , @ NotNull Host host , @ NotNull RestPortUrlFactory portUrlFactory ) { return Mode . create ( ) . with ( RestKeys . REST_PORT_URL_FACTORY , portUrlFactory ) //                .with(ExceptionTranslationExtension.TRANSLATOR, new CombinedExceptionTranslator(new DefaultClientExceptionTranslator(), new SoapFaultExceptionTranslator())) . with ( Keys . HOST , host ) . with ( NameApiKeys . API_KEY , apiKey ) ; }
You can take this and extend for your setup if you need more.

<p>Example: .with(StdoutLoggingExtension.enabled())</p>

@param apiKey Your personal api key from registering with us.
@param host for example {@code new Host("api.nameapi.org", 80)}
@param portUrlFactory for example {@code NameApiPortUrlFactory.versionLatestStable()}
You can take this and extend for your setup if you need more .