if (freshnessObj != null) {
if (freshnessObj instanceof String) {
freshness = (String)freshnessObj;
} else if (freshnessObj instanceof CallbackHandler) {
CallbackHandler frCB = (CallbackHandler)freshnessObj;
FreshnessCallback callback = new FreshnessCallback(request);
frCB.handle(new Callback[] {callback});
freshness = callback.getFreshness();
}
}
LOG.info("Freshness: " + freshness);
StringBuilder sb = new StringBuilder();