class ResultManager {

	public synchronized boolean acceptResult(ResultSet resultSet)
	{
		if (allResults.containsKey(resultSet.getTrainingSet().getTrainingSetID()))
		{
			return false;
		}
		allResults.put(resultSet.getTrainingSet().getTrainingSetID(), resultSet);
		ManagerRegistry.getTrainingSetManager().releaseTrainingSet(resultSet.getClientID(), true);
		saveResultSet(resultSet);
		return true;
	}

	  ResultManager();

}