private void checkProjectDeletability(Project project) throws ParentChildConstraintException {
    setProjectDeletability(project);

    if (!project.isDeletable()) {
      LOGGER.debug(
          "Can't delete project, still has "
              + project.getProjectAssignments().size()
              + " assignments");
      throw new ParentChildConstraintException("Project assignments still attached");
    }
  }