protected function serializeConfig($configSerializer)
    {
        if ($configSerializer instanceof ITripodConfigSerializer) {
            return $configSerializer->serialize();
        } elseif (is_array($configSerializer)) {
            return $configSerializer;
        } else {
            throw new \InvalidArgumentException(
                '$configSerializer must an ITripodConfigSerializer or array'
            );
        }
    }