}
Destination retDest = null;
try {
Section toSection = ruleset.getSection("to");
String type = toSection.getField("type").getStringValue();
String address = toSection.getField("address").getStringValue();
if (type.equals("SystemStream")) {
if (address.equals("Out")) {
if (selfVerbose) {
System.out.println("[Messages] Constructing SystemOutDest");
}
retDest = new SystemOutDest();
} else if (address.equals("Err")) {
if (selfVerbose) {
System.out.println("[Messages] Constructing SystemErrDest");
}
retDest = new SystemErrDest();
} else {
}
} else {
}
Section propertiesSection = ruleset.getSection("properties");
Field verbosityField = propertiesSection.getField("verbosity");
retDest.setUpVerbosity(verbosityField);
Section listeningSection = ruleset.getSection("listening");
Field categoriesField = listeningSection.getField("categories");
for (int n = 0; n < categoriesField.getNumberOfValues(); n++) {
retDest.startListeningToCategory(categoriesField.getStringValue(n));
}
if (selfVerbose) {