import java.io.IOException;

import models.Scenario;
import models.User;
import controllers.Api;
import play.Application;
import play.GlobalSettings;
import play.api.mvc.EssentialFilter;
import utils.Cluster;

public class Global extends GlobalSettings {
  
	@Override
	public void onStart(Application app) {
		// start up the Akka server
		Cluster.getExecutive();
		
		try {
			Scenario.buildAll();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}  

}

@@ -46,16 +46,41 @@
 enario;%0A
+import models.Shapefile;%0A
 import m
@@ -418,16 +418,55 @@
 dAll();%0A
+%09%09%09Shapefile.writeAllToClusterCache();%0A
 %09%09%7D catc

write all the shapefiles to the cache on startup.