c = m.get(n);
c = (Hierarchy) m.get(n);
    public Hierarchy getCategory(String n) throws Exception {        Hierarchy c = null;        Map m = getCategories();        if (m != null) {            c = m.get(n);        } else {            throw new Exception("Could not get category. The categories is null.");        }                return c;    }