code: @Override
      protected Color buildResource(final ColorItem ci, final ColorParams cp) {
          Color color = null;
  
          if (cp instanceof WebColor) {
              color = buildWebColor((WebColor) cp);
          } else if (cp instanceof RGB01Color) {
              color = buildRGB01Color((RGB01Color) cp);
          } else if (cp instanceof RGB255Color) {
              color = buildRGB255Color((RGB255Color) cp);
          } else if (cp instanceof HSBColor) {
              color = buildHSBColor((HSBColor) cp);
          } else if (cp instanceof GrayColor) {
              color = buildGrayColor((GrayColor) cp);
          }
          return color;
      }
docs: {@inheritDoc}