@Override
    public void run() {
        try {
            // Initialise some variables.
            init();

            final Path tempDir = Paths.get(tmp);
            final String path = FileUtil.getCanonicalPath(tempDir);
            System.setProperty(TempDirProviderImpl.PROP_STROOM_TEMP, path);
            System.setProperty(HomeDirProviderImpl.PROP_STROOM_HOME, path);

            // Create the Guice injector and inject members.
            createInjector();

            process();
        } finally {
            ExternalShutdownController.shutdown();
        }
    }
Command line tool to process some files from a proxy stroom.
stroom-headless/src/main/java/stroom/headless/Headless.java