/**
  * Copies the properties of the source service into this instance.
  *
  * @param source Source service from which to copy properties.
  */
 public void copyFrom(final RegisteredService source) {
   this.setId(source.getId());
   this.setAllowedAttributes(new ArrayList<String>(source.getAllowedAttributes()));
   this.setAllowedToProxy(source.isAllowedToProxy());
   this.setDescription(source.getDescription());
   this.setEnabled(source.isEnabled());
   this.setName(source.getName());
   this.setServiceId(source.getServiceId());
   this.setSsoEnabled(source.isSsoEnabled());
   this.setTheme(source.getTheme());
   this.setAnonymousAccess(source.isAnonymousAccess());
   this.setIgnoreAttributes(source.isIgnoreAttributes());
   this.setEvaluationOrder(source.getEvaluationOrder());
   this.setUsernameAttribute(source.getUsernameAttribute());
   this.setLogoutType(source.getLogoutType());
 }