if (!(policyTO instanceof SyncPolicyTO)) {
throw new ClassCastException("Expected " + SyncPolicyTO.class.getName()
+ ", found " + policyTO.getClass().getName());
}
if (policy == null) {
policy = (T) new SyncPolicy(isGlobal);
}
policy.setSpecification(((SyncPolicyTO) policyTO).getSpecification());
}
policy.setDescription(policyTO.getDescription());