configStream.close();
final InputSource source = new InputSource(new ByteArrayInputStream(buffer));
final Document document = newDocumentBuilder().parse(source);
rootElement = document.getDocumentElement();
final Map<String, String> attrs = processAttributes(rootNode, rootElement);
Level status = getDefaultStatus();
boolean verbose = false;
PrintStream stream = System.out;
for (final Map.Entry<String, String> entry : attrs.entrySet()) {
if ("status".equalsIgnoreCase(entry.getKey())) {
final Level stat = Level.toLevel(getStrSubstitutor().replace(entry.getValue()), null);
if (stat != null) {
status = stat;
} else {
messages.add("Invalid status specified: " + entry.getValue() + ". Defaulting to " + status);
}