taglibs/src/main/java/org/springframework/security/taglibs/authz/AbstractAuthorizeTag.java
@SuppressWarnings({ "unchecked", "rawtypes" })
	private SecurityExpressionHandler<FilterInvocation> getExpressionHandler()
			throws IOException {
		ApplicationContext appContext = SecurityWebApplicationContextUtils.findRequiredWebApplicationContext(getServletContext());
		Map<String, SecurityExpressionHandler> handlers = appContext
				.getBeansOfType(SecurityExpressionHandler.class);

		for (SecurityExpressionHandler h : handlers.values()) {
			if (FilterInvocation.class.equals(GenericTypeResolver.resolveTypeArgument(
					h.getClass(), SecurityExpressionHandler.class))) {
				return h;
			}
		}

		throw new IOException(
				"No visible WebSecurityExpressionHandler instance could be found in the application "
						+ "context. There must be at least one in order to support expressions in JSP 'authorize' tags.");
	}
@SuppressWarnings({ "unchecked", "rawtypes" })
	private SecurityExpressionHandler<FilterInvocation> getExpressionHandler()
			throws IOException {
		ApplicationContext appContext = SecurityWebApplicationContextUtils.findRequiredWebApplicationContext(getServletContext());
		Map<String, SecurityExpressionHandler> handlers = appContext
				.getBeansOfType(SecurityExpressionHandler.class);

		for (SecurityExpressionHandler h : handlers.values()) {
			if (FilterInvocation.class.equals(GenericTypeResolver.resolveTypeArgument(
					h.getClass(), SecurityExpressionHandler.class))) {
				return h;
			}
		}

		throw new IOException(
				"No visible WebSecurityExpressionHandler instance could be found in the application "
						+ "context. There must be at least one in order to support expressions in JSP 'authorize' tags.");
	}
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) private SecurityExpressionHandler < FilterInvocation > getExpressionHandler ( ) throws IOException { ApplicationContext appContext = SecurityWebApplicationContextUtils . findRequiredWebApplicationContext ( getServletContext ( ) ) ; Map < String , SecurityExpressionHandler > handlers = appContext . getBeansOfType ( SecurityExpressionHandler . class ) ; for ( SecurityExpressionHandler h : handlers . values ( ) ) { if ( FilterInvocation . class . equals ( GenericTypeResolver . resolveTypeArgument ( h . getClass ( ) , SecurityExpressionHandler . class ) ) ) { return h ; } } throw new IOException ( "No visible WebSecurityExpressionHandler instance could be found in the application " + "context. There must be at least one in order to support expressions in JSP 'authorize' tags." ) ; }
/*------------- Private helper methods  -----------------
/ * ------------- Private helper methods -----------------