if (sub.getChangedList().hasMoreElements()){ return sub.getChangedList().nextElement(); } else if(sub.getAddedList().hasMoreElements()) { return sub.getAddedList().nextElement(); } else if(sub.getRemovedList().hasMoreElements()){ return sub.getRemovedList().nextElement(); } else { return null; }
if (sub.getChangedList().hasMoreElements()) { return sub.getChangedList().nextElement(); } else if (sub.getAddedList().hasMoreElements()) { return sub.getAddedList().nextElement(); } else if (sub.getRemovedList().hasMoreElements()) { return sub.getRemovedList().nextElement(); } else { return null;
    public Object subscriptionChangedObject(IncrementalSubscription sub) {	if (sub.getChangedList().hasMoreElements()){	    return sub.getChangedList().nextElement();	} else if(sub.getAddedList().hasMoreElements()) {	    return sub.getAddedList().nextElement();	} else if(sub.getRemovedList().hasMoreElements()){	    return sub.getRemovedList().nextElement();	} else {	    return null;	}    }