code: private void decorate(final String styleName, final String caption, final String description,
              final Boolean autoClose) {
          setCaption(caption);
          setDescription(description);
          setStyleName(styleName);
          setHtmlContentAllowed(true);
          setPosition(Position.BOTTOM_RIGHT);
          if (autoClose) {
              setDelayMsec(SPUILabelDefinitions.SP_DELAY);
          } else {
              setDelayMsec(-1);
          }
      }
docs: Decorate.
  
  @param styleName
  style name of message
  @param caption
  message caption
  @param description
  message description
  @param autoClose
  flag to indicate enable close option