case LESS_THAN: return Cmp.LESS_THAN;
case LESS_THAN_EQUAL: return Cmp.LESS_THAN_EQUAL;
default: throw new IllegalArgumentException("Unexpected comparator: " + comp);
}
} else if (p instanceof Contains) {
Contains con = (Contains)p;
switch (con) {
case IN: return Contain.IN;
case NOT_IN: return Contain.NOT_IN;
default: throw new IllegalArgumentException("Unexpected container: " + con);