: null;
IntegerRangeConstraint ic = new IntegerRangeConstraint(longMin, longMax);
toConstraints.add(ic);
} else if (constraint instanceof RegexConstraintType) {
RegexConstraintType regexDetails = (RegexConstraintType) constraint;
RegexConstraint rc = new RegexConstraint();
rc.setDetails(regexDetails.getExpression());
toConstraints.add(rc);
} else {
// this will only occur if we change the .xsd schema and add a type but forget to add to the code above
throw new InvalidPluginDescriptorException("Unknown constraint type: " + fromC);