RELAY2 relay = (RELAY2) list.get(0).getProtocolStack().findProtocol(RELAY2.class);
if (relay != null) {
try {
Field relayerField = RELAY2.class.getDeclaredField("relayer");
relayerField.setAccessible(true);
Relayer relayer = (Relayer) relayerField.get(relay);
if (relayer == null) {
log.debug("No relayer found");
return list;
}
Field bridgesField = Relayer.class.getDeclaredField("bridges");