@Override
        public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
            int indexOf = systemId.lastIndexOf('/');
            String resourceName = systemId.substring(indexOf+1);
            InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream(
                    "svg_xsd/" + resourceName);
            if(resourceAsStream!=null) {
                return new InputSource(resourceAsStream);
            }
            else {
                // TODO logger
                System.out.println("WARN: Unknown entity: " + publicId + ", " + systemId + "");
                return null;
            }
        }