DialogWrapperPeerFactory () { if (!LoadingState.COMPONENTS_REGISTERED.isOccurred()) { return getInstanceByName(); } DialogWrapperPeerFactory factory = ApplicationManager.getApplication().getService(DialogWrapperPeerFactory.class); return factory == null ? getInstanceByName() : factory; }