Java LibX: wait then get