pattern.checkRestrictions(Pattern.START_CONTEXT, null, null);
if (!hadError) return pattern;
} catch (SAXParseException e) {
error(e);
} catch (SAXException e) {
throw new BuildException(e);
} catch (RestrictionViolationException e) {
if (e.getName() != null)
error(e.getMessageId(), e.getName().toString(), e
.getLocator());
else