try { ISuportePersistente sp = SuportePersistenteOJB.getInstance(); sala1 = sp.getISalaPersistente().readByName(keySala.getNomeSala()); if (sala1 != null) { sp.getISalaPersistente().delete(sala1); result = true; } } catch (ExcepcaoPersistencia ex) { ex.printStackTrace(); }  return new Boolean (result); }
try { ISuportePersistente sp = SuportePersistenteOJB.getInstance(); sala1 = sp.getISalaPersistente().readByName(keySala.getNomeSala()); if (sala1 != null) { sp.getISalaPersistente().delete(sala1); result = true; } } catch (notAuthorizedPersistentDeleteException ex) { throw new notAuthorizedServiceDeleteException(ex); } catch (ExcepcaoPersistencia ex) { throw new FenixServiceException(ex); }  return new Boolean(result); }
  public Object run(RoomKey keySala) throws Exception {    ISala sala1 = null;    boolean result = false;    try {      ISuportePersistente sp = SuportePersistenteOJB.getInstance();      sala1 = sp.getISalaPersistente().readByName(keySala.getNomeSala());      if (sala1 != null) {          sp.getISalaPersistente().delete(sala1);          result = true;      }    } catch (ExcepcaoPersistencia ex) {		ex.printStackTrace();    }        return new Boolean (result);  }