public void add(Filter filter) {
filters.add(filter);
}
public void init() {
FilterChain nextLink = new ChainEnd(mailTransaction);
for (int i = filters.size() - 1; i >= 0; i--) {
Filter filter = filters.get(i);
filter.setChain(nextLink);
nextLink = new Link(filter, mailTransaction);
}