code: public static void main(final String... args) throws Exception {
  
          final StorageConfiguration config = new StorageConfiguration(new File(args[0]));
          Storage.createStorage(config);
          final IStorage storage = Storage.openStorage(new File(args[0]));
  
          Injector injector =
              Guice.createInjector(new ModuleSetter().setDataFacClass(TreeNodeFactory.class).setMetaFacClass(
                  NodeMetaPageFactory.class).createModule());
          IBackendFactory backend = injector.getInstance(IBackendFactory.class);
          IRevisioning revision = injector.getInstance(IRevisioning.class);
          Properties props = new Properties();
          props.setProperty(ConstructorProps.STORAGEPATH, storage.getLocation().getAbsolutePath());
          props.setProperty(ConstructorProps.RESOURCE, "shredded");
          storage.createResource(new ResourceConfiguration(props, backend, revision, new TreeNodeFactory(),
              new NodeMetaPageFactory()));
          final ISession session =
              storage.getSession(new SessionConfiguration("shredded", StandardSettings.KEY));
  
          final DefaultHandler defHandler = new DefaultHandler();
  
          final SAXSerializer serializer = new SAXSerializer(session, defHandler);
          serializer.call();
  
          session.close();
      }
docs: Main method.
  
  @param args
  args[0] specifies the path to the TT-storage from which to
  generate SAX events.
  @throws Exception
  handling treetank exception