public function getConfigForEntity($entity)
    {
        if (is_object($entity)) {
            $entityClass = self::getEntityClass($entity);
        } else {
            $entityClass = $entity;
        }
        if (array_key_exists($entityClass, $this->config)) {
            return $this->config[$entityClass];
        }

        return array();
    }