return community;
    public static DSpaceObject resolveToObject(Context context, String handle)        throws SQLException    {        TableRow dbhandle = findHandleInternal(context, handle);        if (dbhandle == null)            return null;        if ((dbhandle.isColumnNull("resource_type_id")) ||            (dbhandle.isColumnNull("resource_id")))            throw new IllegalStateException("No associated resource type");        // What are we looking at here?        int handletypeid = dbhandle.getIntColumn("resource_type_id");        int resourceID   = dbhandle.getIntColumn("resource_id"     );                if (handletypeid == Constants.ITEM)        {            Item item = Item.find(context, resourceID);            if (log.isDebugEnabled())                log.debug("Resolved handle " + handle + " to item " +                          (item == null ? -1 : item.getID()));            return item;        }        else if (handletypeid == Constants.COLLECTION)        {            Collection collection = Collection.find(context, resourceID);                        if (log.isDebugEnabled())                log.debug("Resolved handle " + handle + " to collection " +                          (collection == null ? -1 : collection.getID()));        }        else if (handletypeid == Constants.COMMUNITY)        {            Community community = Community.find(context, resourceID);                        if (log.isDebugEnabled())                log.debug("Resolved handle " + handle + " to community " +                          (community == null ? -1 : community.getID()));        }        throw new IllegalStateException("Unsupported Handle Type " +            Constants.typetext[handletypeid]);    }