application.sfDetachAndTerminate(TerminationRecord.normal(name));
try { application.sfDetachAndTerminate(TerminationRecord.normal(name)); } catch (NoSuchObjectException ignore) {  }
    public void terminateApplication(Prim application) throws RemoteException {        if(application==null) {            return ;        }        Reference name;        try {            name = application.sfCompleteName();        } catch (RemoteException e) {            name = null;        }        application.sfDetachAndTerminate(TerminationRecord.normal(name));    }