} else if (context.getNewObject() instanceof ManualTask) {
return new AddManualTaskFeature(this);
} else if (context.getNewObject() instanceof ReceiveTask) {
return new AddReceiveTaskFeature(this);
} else if (context.getNewObject() instanceof BusinessRuleTask) {
return new AddBusinessRuleTaskFeature(this);
} else if (context.getNewObject() instanceof ServiceTask) {
ServiceTask serviceTask = (ServiceTask) context.getNewObject();
if (ServiceTask.MAIL_TASK.equalsIgnoreCase(serviceTask.getType())) {
return new AddMailTaskFeature(this);
} else if (AlfrescoScriptTask.ALFRESCO_SCRIPT_DELEGATE.equalsIgnoreCase(serviceTask.getImplementation())) {