private boolean isPKNameValid(String pk, ResultSetMetaData rsmd) throws SQLException {
        boolean isValid = false;
        int cols = rsmd.getColumnCount();
        for(int i = 1; i<= cols; i++) {
            String colName = rsmd.getColumnClassName(i);
            if(colName.equalsIgnoreCase(pk)) {
                isValid = true;
                break;
            }
        }

        return isValid;
    }
Validate whether the Primary Key is known to the CachedRowSet.  If it is
not, it is an auto-generated key
@param pk - Primary Key to validate
@param rsmd - ResultSetMetadata for the RowSet
@return true if found, false otherwise (auto generated key)
src/main/java/org/replicadb/rowset/sun/rowset/internal/CachedRowSetWriter.java