}
templatePackageRegistry.backgroundActions.put(backgroundAction.getName(), backgroundAction);
}
if(bean instanceof WorklowTypeRegistration) {
WorklowTypeRegistration registration = (WorklowTypeRegistration) bean;
workflowService.registerWorkflowType(registration.getType(), registration.getDefinition(), registration.getPermissions());
}
return bean;
}