public function createMoney($amount, $currency = null)
    {
        if (null === $currency) {
            $currency = $this->getBaseCurrency();
        }

        $this->checkCurrencies($currency);

        $class = $this->moneyClass;
        return new $class($amount, $currency);
    }