code: public static org.fcrepo.server.types.gen.Condition convertConditionToGenCondition(Condition condition) {
          String opAbbr = condition.getOperator().getAbbreviation();
  
          ComparisonOperator compOperator;
          try {
              compOperator = ComparisonOperator.fromValue(opAbbr);
          } catch (IllegalArgumentException e) {
              throw new IllegalArgumentException("unrecognized comparison operator string: '"
                      + opAbbr + "'");
          }
          org.fcrepo.server.types.gen.Condition cond = new org.fcrepo.server.types.gen.Condition();
          cond.setProperty(condition.getProperty());
          cond.setOperator(compOperator);
          cond.setValue(condition.getValue());
          return cond;
      }
docs: Convert a local {@link Condition} into a WSDL-style
  {@link org.fcrepo.server.types.gen.Condition Condition}.