@Override public void writeQuery(StubAmp actor,String methodName,Object[] args,InboxAmp inbox){
  try (OutputStream os=openItem(inbox)){
    try (OutH3 out=_serializer.out(os)){
      String key=actor.journalKey();
      out.writeLong(CODE_QUERY);
      out.writeString(key);
      out.writeString(methodName);
      out.writeLong(args.length);
      for (      Object arg : args) {
        out.writeObject(arg);
      }
    }
   }
 catch (  IOException e) {
    log.log(Level.FINER,e.toString(),e);
  }
}

@ Override public void writeQuery ( StubAmp actor , String methodName , Object [ ] args , InboxAmp inbox ) { try ( OutputStream os = openItem ( inbox ) ) { try ( OutH3 out = _serializer . out ( os ) ) { String key = actor . journalKey ( ) ; out . writeLong ( CODE_QUERY ) ; out . writeString ( key ) ; out . writeString ( methodName ) ; out . writeLong ( args . length ) ; for ( Object arg : args ) { out . writeObject ( arg ) ; } } } catch ( IOException e ) { log . log ( Level . FINER , e . toString ( ) , e ) ; } }
writes the query to the journal . the queryref values are not saved , because restoring them does not make sense .
