public void onKeep(KeepEvent event) {
final Result result = event.getResult();
String title;
if (result instanceof WebResult) {
WebResult web = (WebResult) result;
title = web.getTitle();
} else if (result instanceof NewsResult) {
NewsResult web = (NewsResult) result;
title = web.getTitle();
} else if (result instanceof VideoResult) {
VideoResult video = (VideoResult) result;
title = video.getTitle();
// Metadata is also available
System.out.println(video.getTbHeight() + "x" + video.getTbWidth() + " "