public String stopSharingSingleNote(NoteStoreClient noteStore, String noteGuid) { try { noteStore.stopSharingNote(noteGuid); return noteGuid; } catch (EDAMNotFoundException e) { System.out.println("Error stopping sharing note:"); System.out.println(e); } catch (EDAMSystemException e) { System.out.println("Error stopping sharing note:"); System.out.println(e); } catch (EDAMUserException e) { System.out.println("Error stopping sharing note:"); System.out.println(e); } catch (TException e) { System.out.println("Error stopping sharing note:"); System.out.println(e); } return null; }