LOG.debug("Execute synchronization with token {}", syncTask.getResource().getUsyncToken());
final List<SyncResult> results = new ArrayList<SyncResult>();
final SyncPolicy syncPolicy = syncTask.getResource().getSyncPolicy();
final ConflictResolutionAction resAct = syncPolicy == null || syncPolicy.getSpecification() == null
? ConflictResolutionAction.IGNORE
: ((SyncPolicySpec) syncPolicy.getSpecification()).getConflictResolutionAction();
// Prepare handler for SyncDelta objects
final SyncopeSyncResultHandler handler =
(SyncopeSyncResultHandler) ((DefaultListableBeanFactory) ApplicationContextProvider.
getApplicationContext().getBeanFactory()).createBean(