try {
FeedBuilder builder = new FeedBuilder();
Response response = layoutFeedClient.get(builder);
if (response.getStatus().isSuccess()) {
Feed feed = builder.getFeed();
feed.index();
Set<String> names = new TreeSet<String>();
List<SecurityGuard.SecureRoute> copyOfRoutes = new ArrayList<SecurityGuard.SecureRoute>();
copyOfRoutes.addAll(security.getRoutes());
try {
security.getRoutes().clear();
for (Entry entry : feed.getEntriesByTerm(T_SECURITY_PROTECTED_PATH)) {
Term paths = entry.getTerm(T_SECURITY_PROTECTED_PATH);
getLogger().info("Security entry "+entry.getId());
String unauthorized = getTerm(entry,T_SECURITY_REDIRECT_UNAUTHORIZED);
Reference unauthorizedRef = unauthorized==null ? null : new Reference(unauthorized);