pattern = caseSensitive ? Pattern.compile(regex) : Pattern.compile(regex, Pattern.CASE_INSENSITIVE);
}
public void intercept(final ActionInvocation ai) {
if (pattern.matcher(ai.getActionKey()).matches()) {
Db.tx(new IAtom(){
public boolean run() throws SQLException {
ai.invoke();
return true;
}});
}