code: public static TaskEntity create() {
      TaskEntity task = new TaskEntity();
      task.isIdentityLinksInitialized = true;
      task.setCreateTime(ClockUtil.getCurrentTime());
      return task;
    }
docs: new task.  Embedded state and create time will be initialized.
  But this task still will have to be persisted with
  TransactionContext
  .getCurrent()
  .getPersistenceSession()
  .insert(task);