@Override
	protected boolean configureQuery()
	{
		_twitterQuery = new Query();
		
		_twitterQuery.setLang("en");
		
		if (_configuration.exists(SNConnectorKeys.CONF_QUERY_KEY.getId()) > 0)
		{
			_search = _configuration.getValue(SNConnectorKeys.CONF_QUERY_KEY.getId(), "");
			_twitterQuery.setQuery(_search);
		}
		else
		{
			log.severe("Query not specified in file "+_propertiesFile+".");
			return false;
		}

		if (_configuration.exists(SNConnectorKeys.CONF_COUNT_KEY.getId()) > 0)
		{
			_twitterQuery.setCount(_configuration.getIntValue(SNConnectorKeys.CONF_COUNT_KEY.getId(), 100));
		}

		if (_configuration.exists(SNConnectorKeys.CONF_SINCEID_KEY.getId()) > 0)
		{
			_twitterQuery.setSinceId(_configuration.getIntValue(SNConnectorKeys.CONF_SINCEID_KEY.getId(), -1));
		}

		if (_configuration.exists(SNConnectorKeys.CONF_MAXID_KEY.getId()) > 0)
		{
			_twitterQuery.setMaxId(_configuration.getIntValue(SNConnectorKeys.CONF_MAXID_KEY.getId(), -1));
		}

		if (_configuration.exists(SNConnectorKeys.CONF_SINCE_KEY.getId()) > 0)
		{
			_twitterQuery.setSince(_configuration.getValue(SNConnectorKeys.CONF_SINCE_KEY.getId(), ""));
		}

		if (_configuration.exists(SNConnectorKeys.CONF_UNTIL_KEY.getId()) > 0)
		{
			_twitterQuery.setUntil(_configuration.getValue(SNConnectorKeys.CONF_UNTIL_KEY.getId(), ""));
		}
		
		return true;
	}