code: public void addCaption(String name, String type) {
          captions.add(new StatCaptionBean(name, name + " as " + type, ""));
      }
docs: Add a caption value.
  
  @param name the caption
  @param type short description