Example of Java calls to OpenAm HTTP/REST API