private Collection<ConfigAttribute> createAttributes(RequestMatcher matcher, String access) {
LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> map = new LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>>();
Collection<ConfigAttribute> atts = new LinkedList<ConfigAttribute>();
map.put(matcher, atts);
atts.add(new SecurityConfig(access));
ExpressionBasedFilterInvocationSecurityMetadataSource ms = new ExpressionBasedFilterInvocationSecurityMetadataSource(map,
new DefaultWebSecurityExpressionHandler());
return ms.getAllConfigAttributes();