private void clearInitiators(List<Initiator> initiators,String protocol){
  Iterator<Initiator> iterator=initiators.iterator();
  while (iterator.hasNext()) {
    Initiator initiator=iterator.next();
    if (StringUtils.equals(initiator.getProtocol(),protocol)) {
      iterator.remove();
    }
  }
}

private void clearInitiators ( List < Initiator > initiators , String protocol ) { Iterator < Initiator > iterator = initiators . iterator ( ) ; while ( iterator . hasNext ( ) ) { Initiator initiator = iterator . next ( ) ; if ( StringUtils . equals ( initiator . getProtocol ( ) , protocol ) ) { iterator . remove ( ) ; } } }
removes initiators from list that have the given protocol
