public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null) ? createNewInstance() : target); if (draftCopy instanceof WSIWmsServer) { final WSIWmsServer copy = ((WSIWmsServer) draftCopy); if (this.isSetName()) { String sourceName; sourceName = this.getName(); String copyName = ((String) strategy.copy(LocatorUtils.property(locator, "name", sourceName), sourceName)); copy.setName(copyName); } else { copy.name = null; } if (this.isSetUrl()) { String sourceUrl; sourceUrl = this.getUrl(); String copyUrl = ((String) strategy.copy(LocatorUtils.property(locator, "url", sourceUrl), sourceUrl)); copy.setUrl(copyUrl); } else { copy.url = null; } } return draftCopy; }