code: private String checkColor(String color) {
  
          if (color != null) {
              if (color.indexOf("#") == -1) {
                  // add the "#" to the color string
                  color = "#" + color;
              }
              int colLength = color.length();
              if ((colLength == 4) || (colLength == 7)) {
                  return color;
              }
          }
          return "#FFFFFF";
      }
docs: Check the stored color value to prevent display issues in the generated HTML ouput.<p>
  
  @param color the color value to check
  @return the checked color value