code: public String translate(Reader reader, String avroNamespace,
              String avroSchemaName) throws Xsd2AvroTranslatorException {
  
          XmlSchemaCollection schemaCol = new XmlSchemaCollection();
          XmlSchema xsd = schemaCol.read(new StreamSource(reader));
          return translate(xsd, avroNamespace, avroSchemaName);
      }
docs: Translate the input XML Schema (via Reader).
  
  @param reader the input XML Schema reader
  @param avroNamespace the target Avro namespace
  @param avroSchemaName the target Avro schema name
  @return the Avro schema as a JSON string
  @throws Xsd2AvroTranslatorException if translation fails