Attribute predicates in the Java API

Hi all,

Are there any examples of attribute predicates being used in the wild with the Java API? I’m having a hard time adapting the Clojure example to work in Java. It someone could point me in the right direction, it would be much appreciated.

Thanks in advance,
Joe