AdminEvent event;
if (eventModuleType.equals(BaseDeployEvent.APPLICATION)) {
event = new ApplicationDeployEvent(instanceName, entityName,
actionCode);
} else {
event = new ModuleDeployEvent(instanceName, entityName,
eventModuleType, actionCode);
}
// When the action is to start the application, set the enable
// attributes of the application to true locally so the application