public String registerNode(String domainUri, String nodeUri){
// try and remove it first just in case it's already registered
removeNode(domainUri, nodeUri);
NodeInfo nodeInfo = new NodeInfoImpl(domainUri, nodeUri);
nodes.add(nodeInfo);
logger.log(Level.INFO, "Registered node: " + nodeUri);
return nodeUri;
}