void setHeaders(Map<String, String> headers) {
    this.headers = Collections.unmodifiableMap(new HashMap<>(headers));
  }
void setHeaders ( Map < String , String > headers ) { this . headers = Collections . unmodifiableMap ( new HashMap < > ( headers ) ) ; }
Sets headers for deserialization purpose.

@param headers headers to set