if (isAttribute(obj)) {
if (!isChild(obj)) {
    public int sizeAttributes() {        try {            int counter = 0;            String name = "";            Context c = ((Prim) entry).sfContext();            Object obj = null;            for (Enumeration e = c.keys(); e.hasMoreElements();) {                name = e.nextElement().toString();                obj = c.get(name);                if (isAttribute(obj)) {                    //&& !name.toString().endsWith("URL"))                    counter++;                }            }            return counter;        } catch (Exception ex) {            return 0;        }    }