PropertyConfigurator.configure(application.getRealPath("/")+"/WEB-INF/log4j.miso.properties");
XmlWebApplicationContext context = (XmlWebApplicationContext)WebApplicationContextUtils.getRequiredWebApplicationContext(application);
//resolve property file configuration placeholders
MisoPropertyExporter exporter = (MisoPropertyExporter) context.getBean("propertyConfigurer");
Map<String, String> misoProperties = exporter.getResolvedProperties();
log.info("Checking MISO storage paths...");
String baseStoragePath = misoProperties.get("miso.baseDirectory");
context.getServletContext().setAttribute("miso.baseDirectory", baseStoragePath);