SyncProcess proc = db.getSyncProcess(name);
if (proc!=null) {
Synchronizer sync = null;
if (proc.isPullSynchronization()) {
User user = (User)getRequest().getAttributes().get(App.USER_ATTR);
sync = new PullSynchronizer(getContext().getLogger(),getApplication().getMetadataService(),user,db,storage,proc);
((PullSynchronizer)sync).setAdditive(proc.isAdditive());
} else {
sync = new PushSynchronizer(getContext().getLogger(),db,storage,proc);
}