feature #1791: Add new states to JAVA bindings, and Sunstone