private QName getSimpleContentTypeName(XmlSchemaSimpleType schemaSimpleType) {
   QName simpleContentTypeName = null;
   if (schemaSimpleType.getContent() != null
       && schemaSimpleType.getContent() instanceof XmlSchemaSimpleTypeRestriction) {
     XmlSchemaSimpleTypeRestriction simpleContent =
         (XmlSchemaSimpleTypeRestriction) schemaSimpleType.getContent();
     simpleContentTypeName = simpleContent.getBaseTypeName();
   } else {
     throw new RuntimeException(
         "Unsupported simple content model: "
             + schemaSimpleType.getContent().getClass().getCanonicalName());
   }
   return simpleContentTypeName;
 }