Example for using Google Cloud Endpoints in Java