class RestfulClient {
    private static final Logger LOGGER = Logger.getLogger(RestfulClient.class.getName());

    private RestfulClient() {
        // private to ensure static
    }

    /**
     * Perform HTTP POST request.
     * @param uri URI
     * @param input JSON string contents
     * @return HTTP status or -1
     */
    public static int postIt(String uri, String input) {<FILL_FUNCTION_BODY>}
}

        int result;
        try {
            try (Client client = ClientBuilder.newBuilder().
                    connectTimeout(RuntimeEnvironment.getInstance().getConnectTimeout(), TimeUnit.SECONDS).build()) {
                LOGGER.log(Level.FINEST, "sending REST POST request to {0}: {1}",
                        new Object[]{uri, input});
                try (Response response = client.target(uri)
                        .request(MediaType.APPLICATION_JSON)
                        .post(Entity.entity(input, MediaType.APPLICATION_JSON))) {

                    int status = response.getStatus();
                    if (status != HttpServletResponse.SC_CREATED) {
                        LOGGER.log(Level.WARNING, "REST request failed: HTTP error code : {0}", status);
                    }

                    result = status;
                }
            }
        } catch (Exception e) {
            LOGGER.log(Level.WARNING, "REST request failed", e);
            result = -1;
        }
        return result;
    
<no_super_class>