@SuppressWarnings("unchecked")
	private AccessDeniedHandler getDefaultAccessDeniedHandler(H http) {
		ExceptionHandlingConfigurer<H> exceptionConfig = http
				.getConfigurer(ExceptionHandlingConfigurer.class);
		AccessDeniedHandler handler = null;
		if (exceptionConfig != null) {
			handler = exceptionConfig.getAccessDeniedHandler();
		}
		if (handler == null) {
			handler = new AccessDeniedHandlerImpl();
		}
		return handler;
	}
@SuppressWarnings("unchecked")
	private AccessDeniedHandler getDefaultAccessDeniedHandler(H http) {
		ExceptionHandlingConfigurer<H> exceptionConfig = http
				.getConfigurer(ExceptionHandlingConfigurer.class);
		AccessDeniedHandler handler = null;
		if (exceptionConfig != null) {
			handler = exceptionConfig.getAccessDeniedHandler();
		}
		if (handler == null) {
			handler = new AccessDeniedHandlerImpl();
		}
		return handler;
	}
@ SuppressWarnings ( "unchecked" ) private AccessDeniedHandler getDefaultAccessDeniedHandler ( H http ) { ExceptionHandlingConfigurer < H > exceptionConfig = http . getConfigurer ( ExceptionHandlingConfigurer . class ) ; AccessDeniedHandler handler = null ; if ( exceptionConfig != null ) { handler = exceptionConfig . getAccessDeniedHandler ( ) ; } if ( handler == null ) { handler = new AccessDeniedHandlerImpl ( ) ; } return handler ; }
Gets the default {@link AccessDeniedHandler} from the
{@link ExceptionHandlingConfigurer#getAccessDeniedHandler()} or create a
{@link AccessDeniedHandlerImpl} if not available.

@param http the {@link HttpSecurityBuilder}
@return the {@link AccessDeniedHandler}
Gets the default { @link AccessDeniedHandler } from the { @link ExceptionHandlingConfigurer#getAccessDeniedHandler () } or create a { @link AccessDeniedHandlerImpl } if not available .