try {
for (URI term : index.keySet()) {
Object value = index.get(term);
Term t = feed.getDB().createTerm(term);
entry.categorize(t,value);
}
} catch (SQLException ex) {
throw new AppException(Status.SERVER_ERROR_INTERNAL,"Cannot categorize entry due to SQL Exception.",ex);
}