public static com.liferay.portlet.journal.model.JournalTemplateSoap getTemplate(
      long groupId, java.lang.String templateId) throws RemoteException {
    try {
      com.liferay.portlet.journal.model.JournalTemplate returnValue =
          JournalTemplateServiceUtil.getTemplate(groupId, templateId);

      return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static void getTemplate(HttpServletRequest request) throws Exception {

    long groupId = ParamUtil.getLong(request, "groupId");
    String templateId = ParamUtil.getString(request, "templateId");

    JournalTemplate template = null;

    if (Validator.isNotNull(templateId)) {
      template = JournalTemplateServiceUtil.getTemplate(groupId, templateId);
    }

    request.setAttribute(WebKeys.JOURNAL_TEMPLATE, template);
  }