code: public PTable makeNewPTable(FieldList record, Object lookupKey)
      {
          InputStream istream = null;
          try
          {
              if (lookupKey instanceof String)
                  istream = this.openSerialStream(record, (String)lookupKey);
              if (istream != null)
              {
                  ObjectInputStream q = new ObjectInputStream(istream);
                  
                  MTable sTable = (MTable)q.readObject();
                  q.close();      // Is this necessary?
                  sTable.init(this, record, lookupKey);
                  return sTable;
              }
               
          } catch (Exception ex) {
          	System.out.println("Error " + ex.getMessage() + " on read serial file: " + lookupKey);
          	//+Util.getLogger().warning("Error " + ex.getMessage() + " on read serial file: " + lookupKey);
          } finally {
              try {
                  if (istream != null)
                      istream.close();
              } catch (IOException e) {
              }            
          }
          return new MTable(this, record, lookupKey);   // New empty table
      }
docs: Create a raw data table for this table.
  @param table The table to create a raw data table for.
  @param key The lookup key that will be passed (on initialization) to the new raw data table.
  @return The new raw data table.