for(String path : paths.split(",")){
path = path.trim();
try {
File file = new File(home,path);
XmlFile xmlFile = new XmlFile(file);
String content = xmlFile.asString();
content = content.replace("${JENKINS_HOME}", home.getAbsolutePath());
PrintStream stream = new PrintStream(file);
stream.print(content);
stream.close();
} catch (IOException ex) {