con = getConnection();
con = JDBCUtil.getDBConnection(JNDINames.DATASOURCE);
    public boolean checkForHardTokenIssuerId(Admin admin, int hardtokenissuerid){        debug(">checkForHardTokenIssuerId(id: " + hardtokenissuerid + ")");        Connection con = null;        PreparedStatement ps = null;        ResultSet rs = null;        int count = 1; // return true as default.        try{           // Construct SQL query.            con = getConnection();            ps = con.prepareStatement("select COUNT(*) from UserData where hardTokenIssuerId=?");            ps.setInt(1,hardtokenissuerid);            // Execute query.            rs = ps.executeQuery();            // Assemble result.            if(rs.next()){              count = rs.getInt(1);            }            debug("<checkForHardTokenIssuerId()");            return count > 0;        }catch(Exception e){          throw new EJBException(e);        }finally{           JDBCUtil.close(con, ps, rs);        }    } // checkForHardTokenIssuerId