code: public void generateSchema(Class... classes)
          throws JAXBException, IOException {
          if (!baseDir.exists()) {
              baseDir.mkdirs();
          }
  
          JAXBContext context = JAXBContext.newInstance(classes);
          context.generateSchema(this);
      }
docs: Generates an XML Schema which includes the given classes
  
  @param classes to include in the schema definition
  @throws JAXBException
  @throws IOException