Java Remova a extensão do arquivo do nome do arquivo

fileNameWithOutExt = "test.xml".replaceFirst("[.][^.]+$", "");
Delightful Dogfish