public static void main(String[] args) throws ServiceException, SecurityServiceException, IOException {
ConfigurableApplicationContext context = null;
try {
context = new AnnotationConfigApplicationContext(MavenArtifactNotifierInitConfig.class);
SpringContextWrapper contextWrapper = context.getBean("springContextWrapper",
SpringContextWrapper.class);
contextWrapper.openEntityManager();
contextWrapper.importDirectory(new File("src/main/resources/init/development"));
contextWrapper.reindexAll();
LOGGER.info("Initialization complete");
} finally {
if (context != null) {
context.close();