Java Swing / JAX-RS application integrating with imonnit REST API