if (jsf.isDetected() && ProductConstants.MOJARRA.equals(jsf.getTitle())) {
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
Map<String, Object> applicationMap = externalContext.getApplicationMap();
MojarraInjectionProvider mojarraInjectionProvider = MojarraApplicationAssociate.getInjectionProvider(
externalContext);
applicationMap.put(MojarraInjectionProvider.class.getName(), mojarraInjectionProvider);
if (mojarraInjectionProvider == null) {
logger.error("Unable to discover Mojarra InjectionProvider during startup");