public void add(IPacketPayload payload) {
if (payload == null) {
return;
}
while (payload instanceof IPacket) {
IPacket packet = (IPacket) payload;
PacketTreeNode node = new PacketTreeNode(packet);
this.implAddChildNode(node);
for (ProtocolField field : packet.getHeaderFields()) {
node.add(field);
}
payload = ((IPacket) payload).getPayload();
}
if (payload instanceof BerNodePayload) {