*/
public void setSecondLastFilter(AMFFilter secondLast) {
if (filterChain == null) {
filterChain = secondLast;
} else {
AMFFilter last = walkToEndOfChain(filterChain);
if (last == filterChain) {
secondLast.setNext(filterChain);
filterChain = secondLast;
} else {
AMFFilter parent = walkToParentFilter(filterChain, last);
secondLast.setNext(last);
parent.setNext(secondLast);
}
}
}