public static void main(String[] args) {
        System.out.println("Starting client...");
        // Parse and set command-line arguments
        try {
            parseCommandLineArguments(args);
        } catch (IllegalArgumentException iae) {
            System.err.println("Error parsing port number: " + iae.getLocalizedMessage());
            System.err.println("Fallback to " + Integer.toString(SERVER_PORT));
        }
        System.out.println("Using URI " + SERVER_ADDRESS + ":" + Integer.toString(SERVER_PORT) + "/" + SERVER_BASE_URL);
        final ClientConfig config = new DefaultClientConfig();
        final Client client = Client.create(config);
        try {
            final WebResource service = client.resource(getBaseURI());
            // These are the actual calls to the RESTful service
            System.out.println(service.path("palindrom").path(values.toString()).accept(MediaType.TEXT_PLAIN).get(String.class));
            System.out.println(service.path("palindrom").path(values.toString()).accept(MediaType.TEXT_XML).get(String.class));
            System.out.println(service.path("palindrom").path(values.toString()).accept(MediaType.TEXT_HTML).get(String.class));
        } catch (com.sun.jersey.api.client.ClientHandlerException che) {
            System.err.println("Error: Server at port not accessible: " + che.getLocalizedMessage());
        } catch (com.sun.jersey.api.client.UniformInterfaceException uie) {
            System.err.println("Error: Baseurl probably not correct: " + uie.getLocalizedMessage());
        }
    }