code: public Operations getOperationsForScope(OperationScope... scopes) {
          final Operations result = new Operations();
          final List<Operation> r = new ArrayList<Operation>();
          if (getOperations() != null) {
              for (Operation op : getOperations()) {
                  if (op.getScope() != null) {
                      String s = op.getScope().trim();
                      for (int i = 0; i < scopes.length; i++) {
                          OperationScope scope = scopes[i];
                          if (scope.is(s)) {
                              r.add(op);
                              break;
                          }
                      }
                  }
              }
              result.setOperations(r);
          }
          return result;
      }
docs: Returns an Operations object for the given scope
  
  @param scopes The scopes
  @return The Operations