result.setInheritAttributes(updated.isInheritAttributes());
result.setInheritDerivedAttributes(updated.isInheritDerivedAttributes());
result.setInheritVirtualAttributes(updated.isInheritVirtualAttributes());
// 2. policies
ReferenceMod refAccountPolicy = new ReferenceMod();
refAccountPolicy.setId(updated.getAccountPolicy());
result.setAccountPolicy(refAccountPolicy);
ReferenceMod refPasswordPolicy = new ReferenceMod();
refPasswordPolicy.setId(updated.getPasswordPolicy());
result.setPasswordPolicy(refPasswordPolicy);
// 3. name
if (!original.getName().equals(updated.getName())) {
result.setName(updated.getName());