debug("<getLastCRLNumber()");
debug("<getLastCRLNumber("+maxnumber+")");
    public int getLastCRLNumber(Admin admin, String issuerdn) {        debug(">getLastCRLNumber()");        Connection con = null;        PreparedStatement ps = null;;        ResultSet result = null;        try {            con = getConnection();            ps = con.prepareStatement("select MAX(CRLNumber) from CRLData where issuerDN=?");            ps.setString(1,issuerdn);            result = ps.executeQuery();            int maxnumber = 0;            if (result.next())                maxnumber = result.getInt(1);            debug("<getLastCRLNumber()");            return maxnumber;        }        catch (Exception e) {            throw new EJBException(e);        } finally {            try {                if (result != null) {                    result.close();                }                if (ps != null) {                    ps.close();                }                if (con != null) {                    con.close();                }            } catch (SQLException se) {                error("Error cleaning up: ", se);            }        }    } //getLastCRLNumber