return result;
}
private SyncPolicySpec getSyncPolicySpec(final AbstractSyncTask syncTask) {
SyncPolicySpec syncPolicySpec;
if (syncTask instanceof SyncTask) {
final SyncPolicy syncPolicy = syncTask.getResource().getSyncPolicy() == null
? policyDAO.getGlobalSyncPolicy()
: syncTask.getResource().getSyncPolicy();
syncPolicySpec = syncPolicy == null ? null : syncPolicy.getSpecification(SyncPolicySpec.class);
} else {
syncPolicySpec = null;
}
// step required because the call <policy>.getSpecification() could return a null value
return syncPolicySpec == null ? new SyncPolicySpec() : syncPolicySpec;
}