Why is this method synchronized?