if ( httpHeaderType != null) {
AgentDataProvider adp = AgentDataProvider.getInstance();
HttpHeaderMetadata httpHeaderMetadata = adp.headerMetadataMap.get(httpHeaderType);
// 20140416:
// POTENTIAL BUG FIXED: LACK ERROR HANDLING: WHEN LACK OF HTTP HEADER ID is not defined throw exceptions:
if(httpHeaderMetadata!=null){
httpHeaderMapTemp.putAll(httpHeaderMetadata.getHeaderMap());
}else{
models.utils.LogUtils.printLogError
("httpHeaderType is NOT DEFINED IN httpHeaderMetadata!!!! in getHttpHeaderMapFromHeaderMetadataMap()");
}