/** * Generate a Sphinx report of OMERO Hibernate entities. * @param argv the output filename * @throws IOException if the report cannot be written to the file */ public static void main(String[] argv) throws IOException { if (argv.length != 1) { System.err.println("must give output filename as single argument"); System.exit(1); } out = new FileWriter(argv[0]); final OmeroContext context = OmeroContext.getManagedServerContext(); model = context.getBean("graphPathBean", GraphPathBean.class); report(); out.close(); context.getBean("threadPool", ThreadPool.class).getExecutor().shutdown(); context.closeAll(); } }