TemplateResource (TemplateResource resource) { TemplateResource result = new TemplateResource(); result.setFileName(resource.getFileName()); result.setTemplate(resource.getTemplate()); return result; }