List-type secondary index in 3.5.8

@rbotzer I posted a working Java code above. How does it work if feature is not available on the server? Am I missing something?