*/
public Library createLibrary(Library template) {
logger.info("Creating new library from template: " + template);
Library l = (Library)appContext.getBean("library");
l.setId(template.getId());
l.setCampaign(template.getCampaign());
l.setName(template.getName());
l.setDescription(template.getDescription());
l.setEnabled(template.isEnabled());
l.setCodeLanguage(template.getCodeLanguage());
l.setCode(template.getCode());
logger.info("Library created: " + l);
return l;
}