} catch (RollerException re) {
throw new AtomException("ERROR: getting site's accept range", re);
}
if (perms != null) {
for (Iterator iter=perms.iterator(); iter.hasNext();) {
PermissionsData perm = (PermissionsData)iter.next();
String handle = perm.getWebsite().getHandle();
AtomService.Workspace workspace = new AtomService.Workspace();
workspace.setTitle(Utilities.removeHTML(perm.getWebsite().getName()));
service.addWorkspace(workspace);
AtomService.Collection entryCol = new AtomService.Collection();
entryCol.setTitle("Weblog Entries");
entryCol.setAccept("entry");
entryCol.setHref(URLUtilities.getAtomProtocolURL(true)+"/"+handle+"/entries");
try {
AtomService.Categories cats = new AtomService.Categories();
cats.setFixed(true);
cats.setScheme(URLUtilities.getWeblogURL(perm.getWebsite(), null, true));
List rollerCats = mRoller.getWeblogManager().getWeblogCategories(perm.getWebsite(), false);
for (Iterator it = rollerCats.iterator(); it.hasNext();) {
WeblogCategoryData rollerCat = (WeblogCategoryData)it.next();
AtomService.Category cat = new AtomService.Category();
cat.setTerm(rollerCat.getPath());
cat.setLabel(rollerCat.getName());