public Iterator<SoapHeaderElement> examineHeaderElementsToProcess(String[] actors) {
List<SoapHeaderElement> result = new LinkedList<SoapHeaderElement>();
Iterator<SoapHeaderElement> iterator = examineAllHeaderElements();
while (iterator.hasNext()) {
SoapHeaderElement headerElement = iterator.next();
String actor = headerElement.getActorOrRole();
if (shouldProcess(actor, actors)) {
result.add(headerElement);
}
}
return result.iterator();