public class Authentification extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
OAuthService oauth = OAuthServiceFactory.getOAuthService();
PersistenceManager pm = PMF.get().getPersistenceManager();
if (user != null)
{