Acquire in Java