As we are already passing the path information to the configure() function, there is no need to regenerate the file name using static -site extension. By doing so, This function can be used for configuration files that do not end with site.xml such as capacity-scheduler.xml