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);
}
}