code: public SimpleOrderedMap<Object> rewrite(
        MtasSolrSearchComponent searchComponent) throws IOException {
      SimpleOrderedMap<Object> response = new SimpleOrderedMap<>();
      Iterator<Entry<String, Object>> it;
      switch (action) {
      case ComponentCollection.ACTION_LIST:
        response.add("now", now);
        response.add("list", list);
        break;
      case ComponentCollection.ACTION_CREATE:
      case ComponentCollection.ACTION_POST:
      case ComponentCollection.ACTION_IMPORT:
        if (componentCollection != null && status != null) {
          it = status.iterator();
          while (it.hasNext()) {
            Entry<String, Object> entry = it.next();
            response.add(entry.getKey(), entry.getValue());
          }
        }
        break;
      case ComponentCollection.ACTION_CHECK:
        if (status != null) {
          it = status.iterator();
          while (it.hasNext()) {
            Entry<String, Object> entry = it.next();
            response.add(entry.getKey(), entry.getValue());
          }
        }
        break;
      case ComponentCollection.ACTION_GET:
        if (status != null) {
          it = status.iterator();
          while (it.hasNext()) {
            Entry<String, Object> entry = it.next();
            response.add(entry.getKey(), entry.getValue());
          }
        }
        if (values != null) {
          response.add("values", values);
        }
        break;
      default:
        break;
      }
      return response;
    }
docs: Rewrite.
  
  @param searchComponent the search component
  @return the simple ordered map
  @throws IOException Signals that an I/O exception has occurred.