@Override
	public final boolean equals(Object o) {
		if (this == o) {
			return true;
		}

		if (!(o instanceof ModuleDefinition)) {
			return false;
		}

		ModuleDefinition that = (ModuleDefinition) o;

		if (!name.equals(that.name)) {
			return false;
		}
		if (type != that.type) {
			return false;
		}

		return true;
	}
Compares the module definitions using the name of the {@link ModuleDefinition}
spring-xd-module/src/main/java/org/springframework/xd/module/ModuleDefinition.java