@AssertTrue(message = "collection type is not valid")
	public boolean isCollectionTypeValid() {
		for (RedisCollectionFactoryBean.CollectionType type : RedisCollectionFactoryBean.CollectionType.values()) {
			if (type.name().equals(this.collectionType.name())) {
				return true;
			}
		}
		return false;
	}
Check if the literal and expression values mutually exclusive (have different content).

@param literal
@param expression
@return boolean value
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/modules/metadata/RedisSinkOptionsMetadata.java