package controllers;

import play.Logger;
import play.mvc.Controller;
import utils.Direction;
import utils.ElevatorCommandGenerator;
import utils.StateManager;

public class Application extends Controller {

	private static final StateManager stateManager = new StateManager();
	private static final ElevatorCommandGenerator elevatorCommandGenerator = new ElevatorCommandGenerator();

	public static void reset(String cause) {
		Logger.info("Request received 'reset' with cause : " + cause);
		stateManager.reset();
		ok();
	}

	public static void call(int atFloor, Direction to) {
		Logger.info("Request received 'call' atFloor %d to %s", atFloor, to);
		stateManager.storeCall(atFloor, to);
		ok();
	}

	public static void nextCommand() {
		Logger.info("Request received 'nextCommand'");
		renderText(elevatorCommandGenerator.nextCommand());
	}
}
@@ -841,8 +841,10 @@
 ));%0A%09%7D%0A%7D
+ %0A

Update Application.java