@Override
	public boolean equals(Object obj) {
		if (obj != null) {
			if (obj instanceof Node) {
				Node n = (Node)obj;
				if (n.getId() != null && this.getId() != null 
						&& n.getId().equals(this.getId())) {
					return true;
				}
			} else if (obj instanceof String) {
				String s = (String)obj;
				if (this.getId() != null && s.equals(this.getId())) {
					return true;
				}
			}	
		}
		
		return false;
	}