Added Java example of WaitSet with StatusCondition