public void validate(String value, String pattern, String errorKey)
throws DocumentParseException
{try { __CLOVER_444_0.M[2383]++;
__CLOVER_444_0.S[9822]++;if ((((_matcher == null) && (++__CLOVER_444_0.CT[1682] != 0)) || (++__CLOVER_444_0.CF[1682] == 0))){
__CLOVER_444_0.S[9823]++;_matcher = new RegexpMatcher();}
__CLOVER_444_0.S[9824]++;if ((((_matcher.matches(pattern, value)) && (++__CLOVER_444_0.CT[1683] != 0)) || (++__CLOVER_444_0.CF[1683] == 0))){
__CLOVER_444_0.S[9825]++;return;}
__CLOVER_444_0.S[9826]++;throw new InvalidStringException(Tapestry.format(errorKey, value), value, getLocation());