} 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())) {
boolean isMailTask = false;
for (FieldExtension fieldExtension : serviceTask.getFieldExtensions()) {
if ("script".equalsIgnoreCase(fieldExtension.getFieldName())) {
if (fieldExtension.getStringValue().contains("mail.execute(bpm_package);")) {