Sample based on https://bitbucket.org/jdlee/oauth2-example that uses Jetty instead of GlassFish