public boolean isError(SoapObject body) {
        boolean flag = false;
        try {
            SoapObject error = (SoapObject) body.getProperty("error");
            System.out.print(error);
            String error_value = (String) error.getProperty("description");
            String error_number = (String) error.getProperty("number");
            String error_name = (String) error.getProperty("name");
            int errNo = Integer.parseInt(error_number);
            if ((errNo) > 0) {
                flag = true;
                showAlert(error_name, error_value, AlertType.ERROR);
                /*Alert thisAlert =
                 new Alert(error_name, error_value, null, AlertType.ERROR);
                 thisAlert.setTimeout(Alert.FOREVER);
                 display.setCurrent(thisAlert);*/
            }

        } catch (Exception e) {
        }
        return flag;
    }