private void parseHeader(final String header){
  LOG.debug("parseHeader: {}",header);
  final String headerName=header.substring(0,header.indexOf(":"));
  if (!headersMap.containsKey(headerName)) {
    final String value=header.substring(header.indexOf(":") + 1);
    headersMap.put(headerName,StringUtils.trim(value));
  }
}

private void parseHeader ( final String header ) { LOG . debug ( "parseHeader: {}" , header ) ; final String headerName = header . substring ( 0 , header . indexOf ( ":" ) ) ; if ( ! headersMap . containsKey ( headerName ) ) { final String value = header . substring ( header . indexOf ( ":" ) + 1 ) ; headersMap . put ( headerName , StringUtils . trim ( value ) ) ; } }
parse header value & puts the found values in headersmap field .
