if ( localName.equals("public")) { entityMap.put(atts.getValue("publicId"), atts.getValue("uri")); } }
if (localName.equals("public") || (localName.equals("") && qName.equals("public"))) { entityMap.put(atts.getValue("publicId"), atts.getValue("uri")); } }
    public void startElement(String namespaceURI, String localName, String qName, Attributes atts) {      if ( localName.equals("public")) {        entityMap.put(atts.getValue("publicId"), atts.getValue("uri"));       }     }