{ // Create Application
application = applicationClass.newInstance();
}
catch (InstantiationException e)
{
throw new InternalException(e);
}
catch (IllegalAccessException e)
{
throw new InternalException(e);
}
// InjectionApplicationFactory.setApplicationInstance(application);
Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap();
appMap.put(InjectionApplicationFactory.class.getName(), application);
// log