code: public void addTypeType(String version, TypesType typesType, MessageProcessInfo recMessageProcessInfo)
      {
          if (schemaFactory == null)
              schemaFactory = new org.w3._2001.xmlschema.ObjectFactory();
          // Create the types (import the OTA specs)
          MessageInfo recMessageInfo = this.getMessageIn(recMessageProcessInfo);
          if (recMessageInfo != null)
          {
              String name = this.fixName(recMessageInfo.getField(MessageInfo.DESCRIPTION).toString());
              if (this.isNewType(name))
              {
                  this.addSchema(version, typesType, recMessageInfo);
              }
          }
          recMessageInfo = this.getMessageOut(recMessageProcessInfo);
          if (recMessageInfo != null)
          {
              String name = this.fixName(recMessageInfo.getField(MessageInfo.DESCRIPTION).toString());
              if (this.isNewType(name))
              {
                  this.addSchema(version, typesType, recMessageInfo);
              }
          }
      }
docs: AddTypeType Method.