private void uploadNotebookToConfluence(String projectName, String categoryName,
			String parentName, String notebookName, String notebookContent) {
		boolean notebookUploaded = false;
		int counter = 1;
		while (!notebookUploaded && counter <= ATTEMPTS_TO_UPLOAD) {
			cm.addNotebookToPage(projectName, categoryName, notebookName, notebookContent);
			notebookUploaded = cm.pageWasCreatedBefore(projectName, notebookName);
			System.out.println("Notebook was created [" + notebookUploaded + "]");
			if(notebookUploaded) {
				cm.addNewPageToList(notebookName);
				uploadedNotebooks.add(notebookName);
			}
			counter++;
			if (counter == ATTEMPTS_TO_UPLOAD + 1) {
				notUploadedNotebooks.add(notebookName);
				System.out.println("NOT UPLOADED NOTEBOOKS: ");
				for (int j = 0; j < notUploadedNotebooks.size(); j++) {
					System.out.println(j + " " + notUploadedNotebooks.get(j));
				}
			}
		}
	}