class SpdxLicenseDetailParser {

    /**
     * Reads in a json file and returns a License object.
     */
    public License parse(final Path path) throws IOException {
        final byte[] jdon = Files.readAllBytes(path);
        final ObjectMapper objectMapper = new ObjectMapper();
        return objectMapper.readValue(jdon, License.class);
    }

    /**
     * Returns a List of License objects after parsing a directory of json files.
     */
    public List<License> getLicenseDefinitions() throws IOException {<FILL_FUNCTION_BODY>}
}

        final List<License> licenses = new ArrayList<>();
        final String[] dirs = {"/license-list-data/json/details", "/license-list-data/json/exceptions"};
        for (final String s: dirs) {
        	final File dir = new File(URLDecoder.decode(getClass().getProtectionDomain().getCodeSource().getLocation().getPath(), UTF_8.name()) + s);
            final File[] files = dir.listFiles();
            if (files != null) {
                for (final File nextFile : files) {
                    final License license = parse(nextFile.toPath());
                    licenses.add(license);
                }
            }
        }
        return licenses;
    
<no_super_class>