public boolean streamXSDsWithBindings(boolean includePersistenceConfiguration) {
    SemanticXSDModelCompiler xcompiler =
        (SemanticXSDModelCompiler)
            ModelCompilerFactory.newModelCompiler(ModelFactory.CompileTarget.XSDX);
    SemanticXSDModel xmlModel = (SemanticXSDModel) xcompiler.compile(model);

    xmlModel.streamAll(System.err);

    boolean success = false;
    try {
      success = xmlModel.stream(getMetaInfDir());

      success = xmlModel.streamBindings(getMetaInfDir());

      if (includePersistenceConfiguration) {
        success = success && streamPersistenceConfigs(xcompiler, xmlModel);
      }

    } catch (Exception e) {
      e.printStackTrace();
    }
    return success;
  }