- public Node connect(String type, String connectionIdentifier, Map<ConnectionConstants, String> params) {
- if (connectionService == null) return null;
- return connectionService.connect(type, connectionIdentifier, params);
+ public Node connect(String type, String connectionIdentifier,
+ Map<ConnectionConstants, String> params) {
+ if (connectionService == null)
+ return null;
+ Node node = connectionService.connect(type, connectionIdentifier, params);
+ AbstractScheme scheme = schemes.get(activeScheme);
+ if (scheme != null && node != null)
+ scheme.addNode(node);
+ return node;