userLayoutDocument = layoutStore.getUserLayout(this.owner,this.profile);
// DistributedLayoutManager shall gracefully remove channels
// that the user isn't authorized to render from folders of type
// 'header' and 'footer'.
IAuthorizationService authServ = AuthorizationImpl.singleton();
IAuthorizationPrincipal principal = authServ.newPrincipal(owner.getUserName(), IPerson.class);
NodeList nodes = userLayoutDocument.getElementsByTagName("folder");
for (int i=0; i < nodes.getLength(); i++) {
Element fd = (Element) nodes.item(i);
String type = fd.getAttribute("type");
if (type != null && (type.equals("header") || type.equals("footer"))) {