public function getAdapter($type)
    {
        $returnValue = null;

        
		foreach($this->adapters as $adapter){
			if($adapter instanceof $type){
				$returnValue = $adapter;
				break;
			}
		}
        

        return $returnValue;
    }