public  String searchPostDiscussion(String url){
		String discussionUrl = "";
		if(url.contains(PaginationParameters.getPostsUrlPattern())){
			String urlWithoutPattern = url.substring(0, url.indexOf(PaginationParameters.getPostsUrlPattern()));
			try {
				@SuppressWarnings("resource")
				final Scanner scanner = new Scanner(new File(WriteToCsvDiscussionsFile.fileName));
				while (scanner.hasNextLine()) {
					final String lineFromFile = scanner.nextLine();
					if(lineFromFile.contains(urlWithoutPattern)) { 
						discussionUrl = lineFromFile.substring(1, (lineFromFile.indexOf(
								WriteToCsvDiscussionsFile.delimiter)-1));
						return discussionUrl;  
					}
				}
			} catch (IOException e) {
				Logger.getLogger(OutputParams.class).debug("Execption while searching  Url to Succed URLs  file : "
						+ e.getMessage());
			}
		} else {
			return url;
		}
		return discussionUrl;
	}