public void setOnScreen(View view) {
   if (view instanceof LcduiView) {
     Displayable displayable = ((LcduiView) view).getDisplayable();
     boolean isAlert = displayable instanceof Alert;
     if (!isAlert) {
       lastNonAlert = displayable;
     }
     // trick to avoid the error "Alert cannot be displayed on Alert"
     if (!isAlert) {
       display.setCurrent(displayable);
     } else {
       if (lastNonAlert != null) {
         display.setCurrent((Alert) displayable, lastNonAlert);
       } else {
         App.getLogger()
             .log(
                 "DisplayManagerLcdui handling alert on alert. New alert text : "
                     + ((Alert) displayable).getString(),
                 Logger.LEVEL_DEBUG);
         display.setCurrent((Alert) displayable, new Form(null));
       }
     }
     currentView = view;
   } else {
     App.getLogger()
         .log(
             "DisplayManagerLcdui cannot accept any view other than LcduiView",
             Logger.LEVEL_WARNING);
   }
 }
 public Image fetchImageSafely(String url) {
   try {
     return fetchImage(url);
   } catch (IOException ex) {
     App.getLogger().log("Util.getImageSafely (" + url + ") caught " + ex, Logger.LEVEL_WARNING);
   }
   return null;
 }