final AttributeAccess.Storage storage = access.getStorageType();
if(! queryRuntime && storage != AttributeAccess.Storage.CONFIGURATION) {
continue;
}
final AccessType type = access.getAccessType();
final OperationHandler handler = access.getReadHandler();
if(handler != null) {
// Create the attribute operation
final ModelNode attributeOperation = readOperation.clone();
attributeOperation.get(NAME).set(attributeName);
// TODO this assumes the ResultHandler is invoked synchronously
handler.execute(context, attributeOperation, new ResultHandler() {
@Override
public void handleResultFragment(final String[] location, final ModelNode attributeResult) {
result.get(attributeName).set(attributeResult);
}
@Override