public static <T> T getFromCurrentPath(final PageContext pageContext, final Class<T> type,
final String appName) {
final SlingHttpServletRequest request = SliceTagUtils.slingRequestFrom(pageContext);
final InjectorsRepository injectorsRepository = SliceTagUtils.injectorsRepositoryFrom(pageContext);
final RequestContextProvider requestContextProvider = SliceTagUtils
.requestContextProviderFrom(pageContext);
return getFromCurrentPath(request, injectorsRepository, requestContextProvider, type, appName);
}