private void sendPublisher() {

        for(Publisher publisher : publishers) {
            Response response = publisherTarget
                    .request(MediaType.APPLICATION_JSON)
                    .post(Entity.entity(publisher, MediaType.APPLICATION_JSON));
            if(response.getStatus() >= 300){
                System.out.println("Error: " + response.getStatusInfo().getReasonPhrase());
                return;
            }
        }
    }