public function getAccessEntityForUuid($class, $uuid)
    {
        try {
            $em = $this->entityManager->getDoctrineEntityManager();
            $accessEntity = $em->getRepository($class)->findOneBy(array(
                'uuid' => $uuid,
            ));
            
            if ($accessEntity !== null) {
                $this->loadPermissions($accessEntity);
                
                return $accessEntity;
            }
            
            return false;
        } catch (\Exception $e) {
            throw new Exception('Cannot load the access entitiy from the database for the given uuid "' . $uuid . '".', 0, $e);
        }
    }