(state.isNew() || contentData.isDraft()) &&
!page.getCmsTool().isDisableAutomaticallySavingDrafts()) {
contentData.setDraft(true);
contentData.setUpdateDate(new Date());
contentData.setUpdateUser(user);
state.save();
Set<UUID> automaticallySavedDraftIds = user.getAutomaticallySavedDraftIds();
UUID id = state.getId();
if (!automaticallySavedDraftIds.contains(id)) {