/**
  * {@inheritdoc}
  */
 public function placeOrderCreatingAccount($cartId, $customer, $password, $agreements = null, PaymentInterface $paymentMethod = null)
 {
     /** @var $quoteIdMask QuoteIdMask */
     $quoteIdMask = $this->quoteIdMaskFactory->create()->load($cartId, 'masked_id');
     return $this->quoteManagement->placeOrderCreatingAccount($quoteIdMask->getQuoteId(), $customer, $password, $agreements, $paymentMethod);
 }