pool.setSwallowedExceptionListener(null); // must simply return
final List<Exception> swallowedExceptions = new ArrayList<Exception>();
/*
* A simple listener, that will throw a OOM on 3rd exception.
*/
final SwallowedExceptionListener listener = new SwallowedExceptionListener() {
@Override
public void onSwallowException(Exception e) {
if (swallowedExceptions.size() == 2) {
throw new OutOfMemoryError();
} else {