private void init() throws SQLException
private void init()
    private void init() throws SQLException    {        Context context = null;        try        {            context = new Context();            DSpaceObject dso = HandleManager.resolveToObject(context, handle);            context.abort();            List ids = new ArrayList();            switch (dso.getType())            {            case Constants.BITSTREAM:                ids.add(new Integer(dso.getID()));                break;            case Constants.ITEM:                ids = getItemIds(dso.getID());                break;            case Constants.COLLECTION:                ids = getCollectionIds(dso.getID());                break;            case Constants.COMMUNITY:                ids = getCommunityIds(dso.getID());            }            delegate = new ListDispatcher(ids);            init = Boolean.TRUE;        }        finally        {            // Abort the context if it's still valid            if ((context != null) && context.isValid())            {                context.abort();            }        }    }