public function createDoctrineDBALConnection($driver, $host, $port, $dbname, $user, $password)
    {
        // TODO caching for connection

        $connectionFactory = $this->getDoctrineConnectionFactory();

        $connection = $connectionFactory->createConnection(array(
            'driver' => $driver,
            'host' => $host,
            'port' => $port,
            'dbname' => $dbname,
            'user' => $user,
            'password' => $password,
        ));

        return $connection;
    }