code: public static <T> void setIfPresent(final Environment env, final String key, final Class<T> type,
  			final Consumer<T> function) {
  		final T value = env.getProperty(key, type);
  		if (value != null) {
  			function.accept(value);
  		}
  	}
docs: Load from {@link Environment} a key with a given type. If sucj key is
  present supply it in {@link Consumer}.
  
  @param <T>
  the generic type
  @param env
  the env
  @param key
  the key
  @param type
  the type
  @param function
  the function