}
public String getUrl(String beanName, HttpServletRequest request) throws Exception {
if(StringUtils.startsWith(beanName, PREFIX_PAGE)) {
String viewName = getViewName(beanName, request);
ConfigFactory configFactory = getConfigFactory();
//
String theme = (String) request.getAttribute("theme");
Locale locale = RequestContextUtils.getLocale(request);
PageConfig pageConfig = configFactory.getPageConfig(viewName, locale);
request.setAttribute(PageConfig.KEY, pageConfig);
//
Boolean popup = request.getAttribute("popup")!=null;
return getLayout(theme, popup);
}