protected final JedisConnectionFactory applyProperties(JedisConnectionFactory factory) {
        factory.setHostName(hostname);
        factory.setPort(port);
        if (StringUtils.hasText(password)) {
            factory.setPassword(password);
        }
        factory.setDatabase(database);
        return factory;
    }
Configuration for Redis Sink
@author Mark Pollack
extensions/spring-xd-extension-redis/src/main/java/org/springframework/xd/redis/RedisSinkConfiguration.java