anchor.diff:  <%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %>
   <%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %>
   <%@ page import="org.wso2.carbon.utils.ServerConstants" %>
  +<%@ page import="java.util.Arrays" %>
  +<%@ page import="java.util.Comparator" %>
   <%@ page import="java.util.Locale" %>
   <%@ page import="java.util.ResourceBundle" %>
   
  
positive.code: <%
      String emailTemplateType = request.getParameter("templateType");
      String username = request.getParameter("username");
      Locale[] availableLocale = Locale.getAvailableLocales();
  
      String forwardTo = null;
      String BUNDLE = "org.wso2.carbon.email.mgt.ui.i18n.Resources";
  
negative.code:                                             key="email.template.locale"/></td>
                                      <td><select id="emailLocale" name="emailLocale" class="leftCol-med">
                                          <%
                                              for (Locale aLocale : availableLocales) {
                                                  String localeCode = Util.getLocaleCode(aLocale);
                                          %>
                                          <option value="<%=Encode.forHtmlAttribute(localeCode)%>">
  