code: public void setOcspResponses(Map<X509Certificate, byte[]> responses)
      {
          if (responses == null) {
              this.ocspResponses = Collections.<X509Certificate, byte[]>emptyMap();
          } else {
              Map<X509Certificate, byte[]> copy = new HashMap<>(responses.size());
              for (Map.Entry<X509Certificate, byte[]> e : responses.entrySet()) {
                  copy.put(e.getKey(), e.getValue().clone());
              }
              this.ocspResponses = copy;
          }
      }
docs: Sets the OCSP responses. These responses are used to determine
  the revocation status of the specified certificates when OCSP is used.
  
  @param responses a map of OCSP responses. Each key is an
  {@code X509Certificate} that maps to the corresponding
  DER-encoded OCSP response for that certificate. A deep copy of
  the map is performed to protect against subsequent modification.