Removed depreciated Java code