public Document getDocument(String path) { InputStream stream = getDataResourceStream(path); try { return XmlUtils.createDocument(stream); } catch (Exception error) { Object[] filler = { path, error.getMessage() }; throw new RuntimeException(_MESSAGES.get("CreateDocFailed", filler)); } }