Java version of WaitSet/StatusCondition example

Added Java version of WaitSet with StatusCondition example