}
private void createHandleForActiveNode() {
Node activeNode = getActiveNode();
if (activeNode != null) {
Handle handle = null;
if (getFunctionRepository().hasFunction(activeNode.getHandle())) {
Function handleFunction = getFunctionRepository().getFunction(activeNode.getHandle());
try {
handle = (Handle) handleFunction.invoke();
} catch (Exception e) {
LOG.log(Level.WARNING, "Error while creating handle for " + activeNode, e);
}
}
if (handle != null) {
handle.setHandleDelegate(this);
handle.update();
viewerPane.setHandle(handle);
} else {
viewerPane.setHandle(null);
}
}