private static PushContext createInstance() {
FacesContext facesContext = FacesContext.getCurrentInstance();
if (facesContext == null) {
throw new PushContextInitializationException(
"FacesContext is not available when trying to initialize PushContext - use startup initialization (web.xml context-param org.richfaces.application.push.initializeOnStartup = true)");
}
String pushHandlerMapping = (String) facesContext.getExternalContext().getApplicationMap()
.get(PUSH_HANDLER_MAPPING_ATTRIBUTE);