*/
public ObjectCategory createObjectCategory(ObjectCategory template) {
logger.info("Creating new object category from template: " + template);
ObjectCategory oc = (ObjectCategory)appContext.getBean("objectCategory");
oc.setId(template.getId());
oc.setCampaign(template.getCampaign());
oc.setName(template.getName());
oc.setScript(template.getScript());
oc.setScriptLanguage(template.getScriptLanguage());
oc.setObjectTypes(template.getObjectTypes());
logger.info("Object category created: " + oc);
return oc;
}