public Dictionary readFromFile(String language) {
        //file uitlezen vanuit xml
        try {
            JAXBContext context = JAXBContext.newInstance(Dictionary.class);
            Unmarshaller un = context.createUnmarshaller();
            return (Dictionary) un.unmarshal(new File(PathUtils.getDictionaryPath() + PathUtils.DICTIONARY_PREFIX + language + FILE_TYPE));
        } catch (JAXBException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }