public static <T> T getFromCurrentPath(final PageContext pageContext,
final Class<T> type) {
final SlingHttpServletRequest request = SliceTagUtils
.slingRequestFrom(pageContext);
final InjectorsRepository injectorsRepository = SliceTagUtils
.injectorsRepositoryFrom(pageContext);
final ContextProvider contextProvider = SliceTagUtils
.contextProviderFrom(pageContext);
return SliceTagUtils.getFromCurrentPath(request, injectorsRepository,