private void addToMap()

in javaHapiValidatorLambda/src/main/java/software/amazon/fwoa/Validator.java [238:252]


    private <T extends IBaseResource> void addToMap(T theStructureDefinition, Map<String, T> map, String theUrl) {
        if (isNotBlank(theUrl)) {
            map.put(theUrl, theStructureDefinition);

            int lastSlashIdx = theUrl.lastIndexOf('/');
            if (lastSlashIdx != -1) {
                map.put(theUrl.substring(lastSlashIdx + 1), theStructureDefinition);
                int previousSlashIdx = theUrl.lastIndexOf('/', lastSlashIdx - 1);
                if (previousSlashIdx != -1) {
                    map.put(theUrl.substring(previousSlashIdx + 1), theStructureDefinition);
                }
            }

        }
    }