Correct usage of GatewayFactory->create