private void compare(int rId, String checkText, String link, int docId)
	{
		IComparer comparer = new MyComparer(rId, _settings);
		comparer.setOnCompareFinishedListener(new OnCompareFinishedListener()
		{
			@Override
			public void onCompareResultFound(ArrayList<CompareResult> compareResult, int docId)
			{
				MySqlDatabaseHelper mySqlDatabaseHelper = new MySqlDatabaseHelper();
				mySqlDatabaseHelper.insertCompareResults(compareResult, docId);
				calcSimilarity(compareResult);
			}

			@Override
			public void onCompareResultFound(ArrayList<CompareResult> compareResult, String link)
			{
				MySqlDatabaseHelper mySqlDatabaseHelper = new MySqlDatabaseHelper();
				mySqlDatabaseHelper.insertCompareResults(compareResult, link);
				calcSimilarity(compareResult);
			}
		});
		if (docId <= 0)
		{
			_logger.debug("Compare To URL: " + link);
			comparer.compareText(checkText, new SourceLoader().loadURL(link), link);
		}
		else
		{
			_logger.debug("Compare To Document: " + docId);
			comparer.compareText(checkText, SourceLoader.loadFile(ROOT_FILES + docId + ".pjt"), docId);
		}
	}