//change of credentials requested and returning from flickr
if(request.getSession().getAttribute("credentialsOnly") != null
&& (Boolean)request.getSession().getAttribute("credentialsOnly") == true){
request.getSession().setAttribute("credentialsOnly", null);
BookmarksImport bi = BookmarksImport.getBookmarksImport(BookmarkingSource.FLICKR.getType(), username, frob, viewer, getServiceAddr(request));
FlickrBookmarksImport fbi = (FlickrBookmarksImport) bi;
if(fbi.validateUser(frob)){
try {
UserCredentials.getInstance().storeCredentials(viewer, BookmarkingSource.FLICKR, fbi.getLogin(), fbi.getPassword());
} catch (BadCredentialsException e) {
logger.log(Level.WARNING, "",e);
}
}
}else{