public void prepareDefault(Context context) throws ProcessingException {
   CoralSession coralSession = (CoralSession) context.getAttribute(CoralSession.class);
   TemplatingContext templatingContext = TemplatingContext.getTemplatingContext(context);
   super.prepareDefault(context);
   CmsData cmsData = cmsDataFactory.getCmsData(context);
   try {
     EmailPeriodicalsRootResource root =
         periodicalsService.getEmailPeriodicalsRoot(coralSession, cmsData.getSite());
     templatingContext.put("subscriptionNode", root.getSubscriptionNode());
   } catch (PeriodicalsException e) {
     throw new ProcessingException("cannot get email periodicals root", e);
   }
 }
 public void prepareDefault(Context context) throws ProcessingException {
   Parameters parameters = RequestParameters.getRequestParameters(context);
   CoralSession coralSession = (CoralSession) context.getAttribute(CoralSession.class);
   HttpContext httpContext = HttpContext.getHttpContext(context);
   I18nContext i18nContext = I18nContext.getI18nContext(context);
   TemplatingContext templatingContext = TemplatingContext.getTemplatingContext(context);
   SiteResource site = getSite();
   try {
     templatingContext.put("styles", Arrays.asList(styleService.getStyles(coralSession, site)));
     long parent_node_id = parameters.getLong("parent_node_id", -1);
     if (parent_node_id == -1) {
       templatingContext.put("parent_node", getHomePage());
     } else {
       templatingContext.put(
           "parent_node",
           NavigationNodeResourceImpl.getNavigationNodeResource(coralSession, parent_node_id));
     }
   } catch (Exception e) {
     throw new ProcessingException("Screen Error " + e);
   }
 }