if (!fsPath.exists()) {
if (!fsPath.mkdirs()) {
throw new ForeignSourceRepositoryException("unable to create directory " + fsPath.getPath());
}
}
<BUG>}
private File getOutputFileForForeignSource(OnmsForeignSource foreignSource) throws ForeignSourceRepositoryException {</BUG>
File fsPath = new File(m_foreignSourcePath);
createPath(fsPath);
<BUG>File outputFile = new File(fsPath, foreignSource.getName() + ".xml");
</BUG>
return outputFile;

if (!fsPath.exists()) {
if (!fsPath.mkdirs()) {
throw new ForeignSourceRepositoryException("unable to create directory " + fsPath.getPath());
}
}
}
private File encodeFileName(String path, String foreignSourceName) throws ForeignSourceRepositoryException {
return new File(path, foreignSourceName + ".xml");
}
private File getOutputFileForForeignSource(OnmsForeignSource foreignSource) throws ForeignSourceRepositoryException {
File fsPath = new File(m_foreignSourcePath);
createPath(fsPath);
File outputFile = encodeFileName(m_foreignSourcePath, foreignSource.getName());
return outputFile;
