public function getAdapter($adapterName,  $arguments = array())
    {
        $stdName = ucfirst($adapterName);

        $classAdapterName = CheckoutApi_Client_Constant::ADAPTER_CLASS_GROUP.$stdName;
        
        $class = null;

        if (class_exists($classAdapterName)) {
            /** @var CheckoutApi_Client_Adapter_Abstract  $class */
            $class = CheckoutApi_Lib_Factory::getSingletonInstance($classAdapterName,$arguments);
            if(isset($arguments['uri'])) {
                $class->setUri($arguments['uri']);
            }

            if(isset($arguments['config'])) {
                $class->setConfig($arguments['config']);
            }

        } else {
          
            $this->exception("Not a valid Adapter", debug_backtrace());
        } 

        return $class;
        
    }