String syncHandlerName = options.getConfigValue(PARAM_SYNC_HANDLER_NAME, "");
if (syncHandlerName.length() == 0) {
log.error("External login module needs SyncHandler name. Will not be used for login.");
} else {
SyncManager syncMgr = WhiteboardUtils.getService(whiteboard, SyncManager.class);
if (syncMgr == null) {
log.error("External login module needs SyncManager. Will not be used for login.");
} else {
syncHandler = syncMgr.getSyncHandler(syncHandlerName);
if (syncHandler == null) {
log.error("No SyncHandler found with name {}. Will not be used for login.", syncHandlerName);
}
}
}