code: private String fedoraLogEntry(DigitalObject object, String pid) {
          String message = fedoraMessageTemplate.replace("[[PID]]", pid);
          return message.replace("[[OID]]", object.getId());
      }
docs: Build a Log entry to use in Fedora. Replace all the template placeholders
  
  @param object The Object being submitted
  @param pid The PID in our system