case SYNC:
default:
if (!(policy.getSpecification() instanceof SyncPolicySpec)) {
throw new ClassCastException("policy is expected to be typed SyncPolicySpec: " + policy.getSpecification().getClass().getName());
}
policyTO = new SyncPolicyTO(isGlobal);
((SyncPolicyTO) policyTO).setSpecification((SyncPolicySpec) policy.getSpecification());
}
policyTO.setId(policy.getId());
policyTO.setDescription(policy.getDescription());