sp.printHTML("Cannot lookup SB_BrowseRegions: " +e+"<br>");
printError("Cannot lookup SB_BrowseRegions: " +e+"<br>");
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException  {    sp = new ServletPrinter(response, "BrowseRegions");    sp.printHTMLheader("RUBiS: Available regions");    sp.printHTML("<h2>Currently available regions</h2><br>");     Context initialContext = null;    try    {      initialContext = new InitialContext();    }     catch (Exception e)     {      sp.printHTML("Cannot get initial context for JNDI: " +e+"<br>");      return ;    }    // Connecting to Home thru JNDI    SB_BrowseRegionsHome home = null;    SB_BrowseRegions sb_browseRegions = null;    try     {      home = (SB_BrowseRegionsHome)PortableRemoteObject.narrow(initialContext.lookup("SB_BrowseRegionsHome"),                                                     SB_BrowseRegionsHome.class);      sb_browseRegions = home.create();    }     catch (Exception e)    {      sp.printHTML("Cannot lookup SB_BrowseRegions: " +e+"<br>");      return ;    }    String list;    try     {      list = sb_browseRegions.getRegions();    }     catch (Exception e)    {      sp.printHTML("Cannot get the list of regions: " +e+"<br>");      return ;    }    sp.printHTML(list);    sp.printHTMLfooter();  }