Removed unneeded java code