@Nonnull
    public static List<String> removeEmptyEntries(@Nullable List<String> input) {
        if(input==null) {
            return Collections.emptyList();
        }
        Iterable<String> trimmedInputs = Iterables.transform(input, TRIM);
        Iterable<String> nonEmptyInputs = Iterables.filter(trimmedInputs, NOT_EMPTY);
        return Lists.newArrayList(nonEmptyInputs);
    }
Remove empty members of a list.
@param input A list of String
@return A list of Non-Empty (length&gt;0) String
src/main/java/io/fabric8/maven/docker/util/EnvUtil.java