public NameMatchesComponentPointcut(String regex) throws MalformedRegularExpressionException {
Perl5Compiler compiler = new Perl5Compiler();
try {
pattern = compiler.compile(regex);
} catch (MalformedPatternException e) {
throw new MalformedRegularExpressionException("malformed component name regular expression", e);
}
}