FeedClient appFeedClient = new FeedClient(client,new Reference(appTermLoc));
if (autoConf.getUsername()!=null) {
appFeedClient.setIdentity(autoConf.getUsername(),autoConf.getPassword());
}
try {
FeedBuilder builder = new FeedBuilder();
Response response = appFeedClient.get(builder);
boolean found = false;
if (!response.getStatus().isSuccess()) {
if (response.getStatus().getCode()!=404) {
getLogger().severe("Cannot get feed "+appTermLoc+", status="+response.getStatus().getCode());
} else {
getLogger().warning("No application feed to load.");
}
} else {
Feed feed = builder.getFeed();
feed.index();
Set<String> ids = new TreeSet<String>();
List<Entry> entries = new ArrayList<Entry>();
entries.addAll(feed.getEntriesByTerm(T_APP));
Comparator<Entry> sorter = new Comparator<Entry>() {