class ConfigService {

    public List<Map<String, String>> getInfo()
    {
        List<Map<String, String>> retval = new ArrayList<>();

        if (configList != null)
        {
            // With Java 8
            retval = configList.stream().map(this::createMap).filter(Objects::nonNull)
                    .collect(Collectors.toList());
        }

        return retval;
    }

}