code: public MessageTransport getMessageTransport(String strMessageTransport)
      {
          if ((strMessageTransport == null) || (strMessageTransport.length() == 0))
              return null;
          if (Utility.isNumeric(strMessageTransport))
          {
              this.setKeyArea(MessageTransport.ID_KEY);
              this.getField(MessageTransport.ID).setString(strMessageTransport);  
          }
          else
          {
              this.setKeyArea(MessageTransport.CODE_KEY);
              this.getField(MessageTransport.CODE).setString(strMessageTransport);
          }
          try {
              if (this.seek(null))
                  return this;
          } catch (DBException ex) {
              ex.printStackTrace();
          }
          return null;
      }
docs: GetMessageTransport Method.