code: public WarningMessage getWarning(int index) {
          if (index < getWarningCount()) {
              return (WarningMessage) this.warnings.get(index);
          }
          return null;
      }
docs: Returns the specified warning message, or null.