removed unused Java code