protected function useHeadersFromType($type=null)
	{
		$defaultHeaders['json'] = array(
			'Accept:application/json',
			'Content-Type:application/json',
		);
		$defaultHeaders['xml'] = array(
			'Accept:application/xml',
			'Content-Type:application/xml',
		);
		$defaultHeaders['custom'] = null;
		if(!isset($type) OR !isset($defaultHeaders[$type]))
		{
			$this->resource = 'custom';
			return $defaultHeaders[$this->defaultResource];
		}
		$this->resource = $type;
		return $defaultHeaders[$type];
	}