code: public static JSONArray accumulatorsColorsToJSON(final List<AccumulatedSingleGraphAO> graphAOs) {
          final JSONArray jsonArray = new JSONArray();
  
          for (AccumulatedSingleGraphAO graphAO : graphAOs) {
              if (StringUtils.isEmpty(graphAO.getName()) || StringUtils.isEmpty(graphAO.getColor()))
                  continue;
  
              final JSONObject jsonObject = graphAO.mapColorDataToJSON();
              jsonArray.put(jsonObject);
          }
  
          return jsonArray;
      }
docs: Maps collection of {@link AccumulatedSingleGraphAO} to JSON representation.
  Accumulator will be mapped only if accumulator has the preconfigured color.
  
  @param graphAOs collection of {@link AccumulatedSingleGraphAO}
  @return JSON array with accumulators colors