Index: src/org/jboss/tools/jst/web/kb/PageProcessor.java =================================================================== --- src/org/jboss/tools/jst/web/kb/PageProcessor.java (revision 20354) +++ src/org/jboss/tools/jst/web/kb/PageProcessor.java (working copy) @@ -191,4 +191,18 @@ } return EMPTY_ATTRIBUTE_ARRAY; } + + public Map getAttributesAsMap(KbQuery query, IPageContext context) { + IAttribute[] as = getAttributes(query, context); + Map map = new HashMap(); + for (IAttribute a: as) { + String n = a.getName(); + if(map.containsKey(n) && !(a instanceof CustomTagLibAttribute)) { + continue; + } + map.put(n, a); + } + return map; + } + } \ No newline at end of file