WICKET-5647 missing generic cast causes compile error on OS X / jdk 8
WICKET-5643 storeBufferedResponse should check if session is temporary.

Code changed as suggested by Martin
WICKET-4904 improved javadoc and marked as deprecated