} catch (NoSuchMethodException e) {
e.printStackTrace();
throw new SherpaRuntimeException(e);
}
} else {
applicationContext = new GenericApplicationContext();
}
ManagedBeanFactory managedBeanFactory = applicationContext.getManagedBeanFactory();
applicationContext.setAttribute(ApplicationContext.CONTEXT_PATH,