Removed the useless java code