private static function createEntityManagerWithParameters(array $options, Configuration $config, EventManager $evm = null)
    {
        try {
            return EntityManager::create(self::randomizeServerPoolConnection($options), $config, $evm);
        } catch (\Exception $e) {
            throw new InvalidArgumentException(
                'Enable to create new EntityManager with provided parameters',
                InvalidArgumentException::INVALID_ARGUMENT,
                $e
            );
        }
    }