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