: module.getPageContents(str.split("/"), user);
if(contentsData.size() == 0)
contentsData.add(new Error404());
PageLayout pageLayout = new Simple();
List<Content> contentList = new LinkedList<Content>();
for(ContentType contentData : contentsData)
contentList.add(new Content(contentData, 0, pageLayout.getDefaultLocation()));
page = new Page(uri, contentList.get(0).getName(), pageLayout);
contents = new LinkedList<List<Content>>();
contents.add(contentList);
} else if((page = PageData.getPage(uri)) != null) { // User pages
PageLayout pageLayout = page.getLayout();
contents = new LinkedList<List<Content>>();
for(String[] location : pageLayout.getLocations())
contents.add(ContentData.getContents(page.getId(), location[1], userRoleKey));
} else { // Error Pages
PageLayout pageLayout = new Simple();
Content content = new Content(new Error404(), 0, pageLayout.getDefaultLocation());
List<Content> contentList = new LinkedList<Content>();
contentList.add(content);
page = new Page(uri, content.getName(), pageLayout);