*/
public Resource createResource(Resource template) {
logger.info("Creating new resource from template: " + template);
Resource r = (Resource)appContext.getBean("resource");
r.setId(template.getId());
r.setCampaign(template.getCampaign());
r.setName(template.getName());
r.setType(template.getType());
r.setData(template.getData());
logger.info("Resource created: " + r);
return r;
}