if (s != null) {
if (a != null) {
    public boolean isEqualTo(String s) throws Exception {        boolean result = Boolean.FALSE;        if (s != null) {            java.lang.String o = (java.lang.String) getJavaObject();            if (o != null) {                if (o.equals(s.getJavaObject())) {                    result = Boolean.TRUE;                }            } else {                throw new Exception("Could not compare string. The java object is null.");            }        } else {            throw new Exception("Could not compare string. The string is null.");        }        return result;    }