Client client = getClient();
client.register(HttpAuthenticationFeature.basic(jiveInstance.getClientId(), jiveInstance.getClientSecret()));
OAuthCredentials credentials = jiveInstance.getCredentials();
WebTarget target = client.target(jiveInstance.getJiveUrl() + "/oauth2/token");
Form form = new Form("grant_type", "refresh_token");
form.param("refresh_token", credentials.getRefreshToken());
form.param("client_id", jiveInstance.getClientId());
JiveOAuthResponse response = target.request().post(Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED),JiveOAuthResponse.class);
logger.info("Access Token : Response : " + response);