class AppFormerJsActivityLoader implements PlaceManagerImpl.AppFormerActivityLoader {

    public boolean triggerLoadOfMatchingEditors(final Path path,
                                                final Runnable successCallback) {

        if (path == null || path.toURI() == null) {
            return false;
        }

        final List<Promise<Void>> loadingMatchingEditors = loadMatchingEditors(path.toURI());

        if (loadingMatchingEditors.size() <= 0) {
            return false;
        }

        finishLoadingMatchingEditors(loadingMatchingEditors, successCallback);
        return true;
    }

    @Inject public  AppFormerJsActivityLoader(final Promises promises,
                                     final ActivityManager activityManager,
                                     final ActivityBeansCache activityBeansCache,
                                     final PlaceManager placeManager,
                                     final LazyLoadingScreen lazyLoadingScreen,
                                     final Event<ActivityLazyLoaded> activityLazyLoadedEvent,
                                     final @Shadowed Instance<JsWorkbenchEditorActivity> jsWorkbenchEditorActivityInstance,
                                     final AppFormerComponentsRegistry appFormerComponentsRegistry);

}