String pattern = attrConfs[i].getAttribute("pattern", null);
if (pattern == null) {
this.origLinkAttrs.put(attr, NO_REGEXP);
} else {
try {
this.origLinkAttrs.put(attr, compiler.compile(pattern));
} catch (RESyntaxException e) {
String msg = "Invalid regexp pattern '" + pattern + "' specified for attribute '" + attr + "'";
throw new ConfigurationException(msg, attrConfs[i], e);
}
}