class ConfigService {

    public String getConfigAsJson(String name)
    {
        String rc = "{}";
        try
        {
            Optional<AcmConfig> optionalRcString = configList.stream().filter(x -> x.getConfigName().equals(name)).findFirst();
            if (optionalRcString.isPresent())
                rc = optionalRcString.get().getConfigAsJson();
        }
        catch (NoSuchElementException e)
        {
            log.error(e.getMessage());
        }
        return rc;
    }

}