code: public CmsAccessControlEntry readAccessControlEntry(CmsDbContext dbc, CmsResource resource, CmsUUID principal)
      throws CmsException {
  
          return getUserDriver(
              dbc).readAccessControlEntry(dbc, dbc.currentProject(), resource.getResourceId(), principal);
      }
docs: Reads an access control entry from the cms.<p>
  
  The access control entries of a resource are readable by everyone.
  
  @param dbc the current database context
  @param resource the resource
  @param principal the id of a group or a user any other entity
  @return an access control entry that defines the permissions of the entity for the given resource
  @throws CmsException if something goes wrong