HeaderList headers = (HeaderList) securityContext.getNonSecurityHeaders();
if(headers != null && headers.size() >0){
Iterator<Header> listItr = headers.listIterator();
boolean found = false;
while(listItr.hasNext()){
GenericSecuredHeader header = (GenericSecuredHeader)listItr.next();
if(header.hasID(id)){
return header;
}
}
}
ArrayList pshList = securityContext.getProcessedSecurityHeaders();
for(int j=0; j< pshList.size() ; j++){
SecurityHeaderElement header = (SecurityHeaderElement) pshList.get(j);
if(id.equals(header.getId())){
return header;
}
}
return null;
}