Create Rest API consuming examples in Java