public String ingest ( Context context , InputStream serialization , String logMessage , String format , String encoding , String pid ) throws ServerException { try { CreatorJournalEntry cje = new CreatorJournalEntry ( METHOD_INGEST , context ) ; cje . addArgument ( ARGUMENT_NAME_SERIALIZATION , serialization ) ; cje . addArgument ( ARGUMENT_NAME_LOG_MESSAGE , logMessage ) ; cje . addArgument ( ARGUMENT_NAME_FORMAT , format ) ; cje . addArgument ( ARGUMENT_NAME_ENCODING , encoding ) ; cje . addArgument ( ARGUMENT_NAME_NEW_PID , pid ) ; return ( String ) cje . invokeAndClose ( delegate , writer ) ; } catch ( JournalException e ) { throw new GeneralException ( "Problem creating the Journal" , e ) ; } }
Let the delegate do it and then write a journal entry .