public void add(Protocol protocol){
  if (protocolList != null) {
    protocolList.add(protocol);
    protocol.init(userConnection);
  }
 else {
    throw new NullPointerException("Tried to add protocol to early");
  }
}

public void add ( Protocol protocol ) { if ( protocolList != null ) { protocolList . add ( protocol ) ; protocol . init ( userConnection ) ; } else { throw new NullPointerException ( "Tried to add protocol to early" ) ; } }
add a protocol to the current pipeline this will call the . init method .
