protected static boolean willSupportDTD(XMLInputFactory f) throws XMLStreamException {
   return ((Boolean) f.getProperty(XMLInputFactory.SUPPORT_DTD)).booleanValue();
 }
 protected static boolean isNamespaceAware(XMLInputFactory f) throws XMLStreamException {
   return ((Boolean) f.getProperty(XMLInputFactory.IS_NAMESPACE_AWARE)).booleanValue();
 }