servletContext.addInitParameter(ViewHandler.FACELETS_REFRESH_PERIOD_PARAM_NAME,"-1");
servletContext.addInitParameter("org.apache.myfaces.config.annotation.LifecycleProvider",
NoInjectionAnnotationLifecycleProvider.class.getName());
TestConfig testConfig = getTestJavaClass().getAnnotation(TestConfig.class);
if (testConfig != null && testConfig.oamAnnotationScanPackages() != null &&
testConfig.oamAnnotationScanPackages().length() > 0)
{
servletContext.addInitParameter("org.apache.myfaces.annotation.SCAN_PACKAGES",
testConfig.oamAnnotationScanPackages());
}