100101102103104105106107108109110
// Check that the given UUID (if any) does not already exist NodeId id = null; if (uuid != null) { id = new NodeId(uuid); if (itemMgr.itemExists(id)) { throw new ItemExistsException( "A node with this UUID already exists: " + uuid); } }