OAuth2 Implementation in Java EE 7 (using Java 8)