void injectSession ( Class < ? > [ ] parameterTypes , List < Object > arguments , T session ) { if ( parameterTypes != null ) { int i = 0 ; for ( Class < ? > parameterType : parameterTypes ) { if ( parameterType . isInstance ( session ) ) { arguments . set ( i , session ) ; break ; } i ++ ; } } }
Inject Session or HttpSession if necessary