public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null) ? createNewInstance() : target); super.copyTo(locator, draftCopy, strategy); if (draftCopy instanceof DefinitionType) { final DefinitionType copy = ((DefinitionType) draftCopy); if (this.isSetRemarks()) { String sourceRemarks; sourceRemarks = this.getRemarks(); String copyRemarks = ((String) strategy.copy( LocatorUtils.property(locator, "remarks", sourceRemarks), sourceRemarks)); copy.setRemarks(copyRemarks); } else { copy.remarks = null; } } return draftCopy; }