// now get theme pages if needed and put them in place of db pages
if (this.editorTheme != null && !this.editorTheme.equals(Theme.CUSTOM)) {
try {
Template template = null;
ThemeManager themeMgr = RollerFactory.getRoller().getThemeManager();
Theme usersTheme = themeMgr.getTheme(this.editorTheme);
Iterator themePages = usersTheme.getTemplates().iterator();
while(themePages.hasNext()) {
template = (Template) themePages.next();
// note that this will put theme pages over custom