class ConfigLookupDao implements LookupDao {

    private void deleteLookupFromExtLookups(String lookupName) throws IOException
    {
        String updatedLookupsAsJson = null;
        for (LookupType lookupType : LookupType.values())
        {
            ArrayNode jsonArrayExt = JsonPath.using(configurationWithSuppressedExceptions).parse(lookupsExt)
                    .read("$." + lookupType.getTypeName());

            if (jsonArrayExt != null)
            {
                for (int i = 0; i < jsonArrayExt.size(); i++)
                {
                    JsonNode node = jsonArrayExt.get(i);
                    if (lookupName.equals(node.get("name").asText()))
                    {
                        jsonArrayExt.remove(i);
                        updatedLookupsAsJson = JsonPath.using(configuration).parse(lookupsExt)
                                .set("$." + lookupType.getTypeName(), jsonArrayExt).jsonString();
                        break;
                    }
                }
            }
        }
        saveLookupsExt(updatedLookupsAsJson);
    }

}