protected function buildProcedure(Mapper $mapper) {
		//create procedure instance
		$this->procedure = $mapper->newProcedure($this->procedureName);
		
		if (isset($this->usePrefix))
			$this->procedure->usePrefix($this->usePrefix);
		
		if (!empty($this->argumentTypes))
			$this->procedure->argTypes($this->argumentTypes);
		
		//PostgreSQL options
		if ($this->procedure instanceof PostgreSQLStoredProcedure) {
			if (isset($this->returnSet))
				$this->procedure->returnSet($this->returnSet);
			
			if (isset($this->escapeName))
				$this->procedure->escapeName($this->escapeName);
		}
		
		//configure procedure
		$this->procedure->merge($this->config);
	}