@Override
	public boolean equals(Object obj) {
		boolean equal = false;
		if (obj instanceof Device) {
			Device dev = (Device) obj;
			Map<String, String> otherDevProps = dev.getProperties();
			boolean areAllEqual = true;
			if (otherDevProps.size() == deviceProperties.size()) {
				for (String prop : deviceProperties.keySet()) {
					areAllEqual = areAllEqual
							&& deviceProperties.get(prop).equals(
									otherDevProps.get(prop));
				}
				equal = areAllEqual;
			}
		}
		return equal;
	}