private DeploymentType determineDeploymentType() {
return usesDevelopmentConfig() ? new WicketServerPrototype() : new WicketServer();
}
private IsisConfigurationBuilder createConfigBuilder(ServletContext servletContext) {
final ResourceStreamSource rssServletContext = new ResourceStreamSourceForWebInf(getServletContext());
final ResourceStreamSource rssTcl = ResourceStreamSourceContextLoaderClassPath.create();
final ResourceStreamSource rssClasspath = new ResourceStreamSourceCurrentClassClassPath();
final IsisConfigurationBuilder isisConfigurationBuilder = new IsisConfigurationBuilderResourceStreams(rssTcl, rssClasspath, rssServletContext);
primeConfigurationBuilder(isisConfigurationBuilder, servletContext);
isisConfigurationBuilder.addDefaultConfigurationResources();
return isisConfigurationBuilder;
}