ModelNode operation = LoggingOperation.make(READ_CHILDREN_TYPES_OPERATION);
// REFACTOR ME!!
// This finds all the handler types (plus loggers) then does a read-children-resources request for each one.
// Instead, we need to just do a single recursive request for everything.
dispatcher.execute(new DMRAction(operation), new DmrCallback() {
@Override
public void onDmrSuccess(ModelNode response) {
List<ModelNode> payload = response.get("result").asList();
for (final ModelNode node : payload) {
final String handlerType = node.asString();
ModelNode operation = LoggingOperation.make(READ_CHILDREN_RESOURCES_OPERATION);
operation.get(CHILD_TYPE).set(handlerType);
dispatcher.execute(new DMRAction(operation), new DmrCallback() {
@Override
public void onDmrSuccess(ModelNode response) {
if (!response.get("result").isDefined()) return;
List<ModelNode> payload = response.get("result").asList();