don't worry, the absolute path is not hard-coded string. it is contributed by file.getAbsolutePath() of directory and the xml file's name
in the test or rapid prototyping we can use , but absolute path is not accepted in final version
Originally, I use ClassLoader.getSystemResource() and Url.openStream() to get InputStream, meanwhile,I also add the directory where xml file is included into source path. But it did't work. Finally, I supply FileInputStream(new File()) with absolute path, and it is ok.