code: public ComponentDto create(DbSession dbSession, NewComponent newComponent, @Nullable Integer userId) {
      ComponentDto componentDto = createWithoutCommit(dbSession, newComponent, userId);
      commitAndIndex(dbSession, componentDto);
      return componentDto;
    }
docs: - Create component
  - Apply default permission template
  - Add component to favorite if the component has the 'Project Creators' permission
  - Index component in es indexes