code: public static boolean isOperationDefined(final ModelNode operation) {
          for (final AttributeDefinition def : ROOT_ATTRIBUTES) {
              if (operation.hasDefined(def.getName())) {
                  return true;
              }
          }
          return false;
      }
docs: Test whether the operation has a defined criteria attribute.
  
  @param operation the operation
  @return