}
private PushResponse processRequest(String url, String json) {
Client client = ClientBuilder.newBuilder().build();
UriBuilder uriBuilder = new JerseyUriBuilder().uri(cosmicPushUrl).path(url);
Response jerseyResponse = client.target(uriBuilder)
.register(HttpAuthenticationFeature.basic(clientName, clientPassword))
.request(MediaType.APPLICATION_JSON_TYPE)
.post(Entity.entity(json, MediaType.APPLICATION_JSON_TYPE));