Java: Added a session handler with authentication capability.