code: public List<CmsProject> getAllAccessibleProjects(
          CmsRequestContext context,
          CmsOrganizationalUnit orgUnit,
          boolean includeSubOus)
      throws CmsException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          List<CmsProject> result = null;
          try {
              result = m_driverManager.getAllAccessibleProjects(dbc, orgUnit, includeSubOus);
          } catch (Exception e) {
              dbc.report(
                  null,
                  Messages.get().container(Messages.ERR_GET_ALL_ACCESSIBLE_PROJECTS_1, dbc.currentUser().getName()),
                  e);
          } finally {
              dbc.clear();
          }
          return result;
      }
docs: Returns all projects which are owned by the current user or which are
  accessible for the group of the user.<p>
  
  @param context the current request context
  @param orgUnit the organizational unit to search project in
  @param includeSubOus if to include sub organizational units
  
  @return a list of objects of type <code>{@link CmsProject}</code>
  
  @throws CmsException if something goes wrong