private boolean isPasswordAffected(IdentifiableObjectEvent<?> event) {

        Identifiable object = event.getObject();
        if (!(object instanceof User))
            return false;

        return ((User) object).getPassword() != null;
        
    }
Returns whether the given event affects the password of a User object.

@param event
    The event to check.

@return
    true if a user's password is specifically set or modified by the
    given event, false otherwise.
guacamole/src/main/java/org/apache/guacamole/event/EventLoggingListener.java