code: public List<CmsResource> getManageableResources(CmsRequestContext context, CmsRole role) throws CmsException {
  
          List<CmsResource> resources;
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              resources = getManageableResources(dbc, role);
          } finally {
              dbc.clear();
          }
          return resources;
      }
docs: Returns all resources of organizational units for which the current user has
  the given role role.<p>
  
  @param context the current request context
  @param role the role to check
  
  @return a list of {@link org.opencms.file.CmsResource} objects
  
  @throws CmsException if something goes wrong