@Override public void reload(URL url) throws Exception { ActiveMQServerLogger.LOGGER.reloadingConfiguration("jms"); InputStream input = url.openStream(); String xml; try (Reader reader = new InputStreamReader(input)) { xml = XMLUtil.readerToString(reader); } xml = XMLUtil.replaceSystemProps(xml); Element e = XMLUtil.stringToElement(xml); if (config instanceof FileJMSConfiguration) { NodeList children = e.getElementsByTagName("jms"); //if the "jms" element exists then parse it if (children.getLength() > 0) { ((FileJMSConfiguration) config).parse((Element) children.item(0), url); JMSServerManagerImpl.this.deploy(); } } } }