}
    public static String resolveToURL(Context context, String handle)        throws SQLException    {        TableRow dbhandle = findHandleInternal(context, handle);        if (dbhandle == null)            return null;        int handletypeid = dbhandle.getIntColumn("resource_type_id");        if (handletypeid == Constants.ITEM)        {            String prefix = ConfigurationManager.getProperty("dspace.url");            String url = prefix + "/item/" + handle;            if (log.isDebugEnabled())                log.debug("Resolved " + handle + " to " + url);            return url;        }        if (handletypeid == Constants.COLLECTION)        {            String prefix = ConfigurationManager.getProperty("dspace.url");            String url = prefix + "/collection/" + handle;            if (log.isDebugEnabled())                log.debug("Resolved " + handle + " to " + url);            return url;        }        if (handletypeid == Constants.COMMUNITY)        {            String prefix = ConfigurationManager.getProperty("dspace.url");            String url = prefix + "/community/" + handle;            if (log.isDebugEnabled())                log.debug("Resolved " + handle + " to " + url);            return url;        }        throw new IllegalArgumentException("Unsupported handle type" +            Constants.typetext[handletypeid]);    }