class AbstractRestAuthCallbackHandler implements RestAuthCallbackHandler<T> {

    final JsonValue createJsonField(String name, Object value) {
        return JsonValueBuilder.jsonValue()
                .put("name", name == null ? "" : name)
                .put("value", value == null ? "" : value)
                .build();
    }

}