public static void main(String[] args)
	{
		// reading the configuration file.
		ConfigurationReader configuration = new ConfigurationReader(_propertiesFile);
		if (!configuration.readConfigurationFile())
		{
			System.out.println("Failed in reading configuration file.");
			return;
		}

		String twitterPropertiesFile = configuration.getValue("config", "");

		SNConnector connector = SNConnectorFactory.getConnector(SNConnectorFactory.getConnectorId(configuration.getValue("application", "")));
		if (connector.configure(twitterPropertiesFile))
		{
			connector.connect();
			List<SNObject> results = new ArrayList<SNObject>();
			connector.query(true);
			while(true)
			{
				while (connector.getResultSize() >= 1)
				{
					results = connector.getAndClearResults();
					for(SNObject tweet: results)
					{
						System.out.println(tweet.getString(SNObjectKeys.POST_TEXT_KEY.getId()));
					}
				}
			}
		}

	}