Implemented the dummy of access(2) in Java.