public void showAuthorDetailes(final String authorName){
SwingWorker<Author, Void> swingWorker = new SwingWorker<Author, Void>() {
@Override
public Author doInBackground() throws IOException{
if (authorName == null || authorName.equalsIgnoreCase(Const.K_UNKOWN_AUTHOR_NAME)){
return new Author();
}
Author author = cachedAuthors.getValidValue(authorName);
if (author!=null){
return author;
}
author = webServiceREST.getAuthor(authorName);
cachedAuthors.addAndSaveToFile(author.getName(), author);
return author;
}
@Override
public void done() {
try {
Author authorAcquired = get();
toaster.showToaster(authorAcquired);
} catch (InterruptedException ignore) {
} catch (ExecutionException e) {
if (e.getCause() != null){
if (e.getCause().getClass() == UniformInterfaceException.class){