code: public Date purgeObject(Context context,
                              String pid,
                              String logMessage) throws ServerException {
          try {
              CreatorJournalEntry cje =
                      new CreatorJournalEntry(METHOD_PURGE_OBJECT, context);
              cje.addArgument(ARGUMENT_NAME_PID, pid);
              cje.addArgument(ARGUMENT_NAME_LOG_MESSAGE, logMessage);
              return (Date) cje.invokeAndClose(delegate, writer);
          } catch (JournalException e) {
              throw new GeneralException("Problem creating the Journal", e);
          }
      }
docs: Create a journal entry, add the arguments, and invoke the method.