final SecurityContext securityContext = getWebSocket().getSecurityContext();
String sourceId = webSocketData.getId();
Map<String, Object> properties = webSocketData.getNodeData();
String targetId = (String) properties.get("targetId");
final LinkSource sourceNode = (LinkSource) getNode(sourceId);
final Linkable targetNode = (Linkable) getNode(targetId);
if ((sourceNode != null) && (targetNode != null)) {
try {
sourceNode.setProperty(LinkSource.linkable, targetNode);
} catch (FrameworkException t) {
getWebSocket().send(MessageBuilder.status().code(400).message(t.getMessage()).build(), true);