public LinkedNoteStoreClient createLinkedNoteStoreClient(
LinkedNotebook linkedNotebook) throws EDAMUserException,
EDAMSystemException, TException, EDAMNotFoundException {
NoteStoreClient mainNoteStoreClient = createNoteStoreClient();
AuthenticationResult sharedAuth = mainNoteStoreClient
.authenticateToSharedNotebook(linkedNotebook.getShareKey());
NoteStoreClient linkedNoteStoreClient = createStoreClient(
NoteStoreClient.class, linkedNotebook.getNoteStoreUrl(),
sharedAuth.getAuthenticationToken());
return new LinkedNoteStoreClient(mainNoteStoreClient,
linkedNoteStoreClient, sharedAuth);
}