public Long getCurrentReferenceNodeId() { try { return nodeManager.getReferenceNode().getId(); } catch (NotFoundException e) { return -1L; } }
public void setReferenceNodeId(Long nodeId) { nodeManager.setReferenceNodeId(nodeId.longValue()); try { nodeManager.getReferenceNode(); } catch (NotFoundException e) { log.warning("Reference node[" + nodeId + "] not valid."); } }