code: private String generateAvroSchema(String xmlSchemaSource,
              String targetPackageName, String targetAvroSchemaName)
              throws IOException {
  
          log.debug("Avro schema {} generation started", targetAvroSchemaName
                  + AVSC_FILE_EXTENSION);
          String avroSchemaSource = cob2AvroTranslator.translate(
                  new StringReader(xmlSchemaSource), targetPackageName,
                  targetAvroSchemaName);
          if (log.isDebugEnabled()) {
              log.debug("Generated Avro Schema: ");
              log.debug(avroSchemaSource);
          }
          log.debug("Avro schema {} generation ended", targetAvroSchemaName
                  + AVSC_FILE_EXTENSION);
          return avroSchemaSource;
      }
docs: Produce the avro schema.
  
  @param xmlSchemaSource the XML schema source
  @param targetPackageName the target Avro package name
  @param targetAvroSchemaName the target Avro schema name
  @return the generated Avro schema
  @throws IOException if serialization fails