- final List<RouteIdentifier<?,?,?>> routeIds = new ArrayList<>(rpcs.size());
-
- for (final DOMRpcIdentifier rpc : rpcs) {
- // FIXME: Refactor routeId and message to use DOMRpcIdentifier directly.
- final RouteIdentifier<?,?,?> routeId =
- new RouteIdentifierImpl(null, rpc.getType().getLastComponent(), rpc.getContextReference());
- routeIds.add(routeId);
- }
- rpcRegistry.tell(new AddOrUpdateRoutes(routeIds), ActorRef.noSender());