public static boolean checkLibrary(Library library) throws ModelingException {
        for(String elementName : library.library.keySet()) {
            Element element = library.library.get(elementName);
            if(!element.check()) {
                throw new ModelingException(0x50, elementName);
            }
        }
        return true;
    }