String response = "Could not handle request for " + req.getPathInfo();
try {
ISimalRepository repo = SimalRepositoryFactory.getInstance();
if (!repo.isInitialised()) {
repo.initialise();
}
HandlerFactory handlerFactory = new HandlerFactory(repo);
IAPIHandler handler = handlerFactory.get(cmd);
response = handler.execute();
} catch (SimalAPIException e) {