package controllers.crawlers;

import play.db.jpa.Transactional;
import play.mvc.Controller;
import play.mvc.Result;

import java.io.IOException;
import java.security.GeneralSecurityException;


public class Google extends Controller {
    private crawlers.google.Google crawler;

    public Google() throws GeneralSecurityException, IOException {
        crawler = new crawlers.google.Google();
    }

    public Result redirectToGoogle() {
        return redirect(crawler.getAuthorizationUrl());
    }

    @Transactional
    public Result authenticated() throws IOException {
        return ok("Processed " + crawler.processPeople(request().getQueryString("code")) + " people");
    }
}

@@ -584,18 +584,25 @@
     
-return ok(
+flash(%22success%22, 
 %22Pro
@@ -682,16 +682,81 @@
 ople%22);%0A
+        return redirect(controllers.people.routes.People.get());%0A
     %7D%0A%7D%0A

Use nicer "Processing succeeded" message