try {
CreateCaseInstanceCmd command = new CreateCaseInstanceCmd(this);
if(commandExecutor != null) {
return commandExecutor.execute(command);
} else {
return command.execute(commandContext);
}
} catch (CaseDefinitionNotFoundException e) {
throw new NotFoundException(e.getMessage(), e);