code: private CmsUUID getProjectIdForContext(CmsDbContext dbc) {
  
          CmsUUID projectId = dbc.getProjectId();
          if (projectId.isNullUUID()) {
              projectId = dbc.currentProject().getUuid();
          }
          return projectId;
      }
docs: Returns the correct project id.<p>
  
  @param dbc the database context
  
  @return the correct project id