src/main/java/org/nameapi/client/lib/NameApiModeFactory.java
@NotNull
    public static Mode withContext(@NotNull String apiKey, @NotNull Context context, @NotNull Host host, @NotNull RestPortUrlFactory portUrlFactory) {
        return minimal(apiKey, host, portUrlFactory)
                .with(NameApiKeys.CONTEXT, context);
    }
@NotNull
    public static Mode withContext(@NotNull String apiKey, @NotNull Context context, @NotNull Host host, @NotNull RestPortUrlFactory portUrlFactory) {
        return minimal(apiKey, host, portUrlFactory)
                .with(NameApiKeys.CONTEXT, context);
    }
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 context for example {@code new ContextBuilder().priority(Priority.REALTIME).build()}
@param host for example {@code new Host("api.nameapi.org", 80)}
@param portUrlFactory for example {@code NameApiPortUrlFactory.versionLatestStable()}