code: public void addMessageType(String version, TDefinitions descriptionType, MessageProcessInfo recMessageProcessInfo)
      {
          // 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.addMessage(version, descriptionType, recMessageInfo);
              }
          }
          recMessageInfo = this.getMessageOut(recMessageProcessInfo);
          if (recMessageInfo != null)
          {
              String name = this.fixName(recMessageInfo.getField(MessageInfo.DESCRIPTION).toString());
              if (this.isNewType(name))
              {
                  this.addMessage(version, descriptionType, recMessageInfo);
              }
          }
      }
docs: AddMessageType Method.