throw new ConfigurationException(String.format("[%s]: could not locate resource [%s]", LOG_PREFIX, resc));
}
// copy the file to new location
final File newLocationFile = new File(this.project.getLocationURI().getPath(), newLocation);
try {
FileUtils.copyStreamToFile(new URLInputStreamFacade(urlResc), newLocationFile);
} catch (IOException ex) {
throw new ConfigurationException(String.format("[%s]: could not copy resource [%s] to [%s], reason [%s]",
LOG_PREFIX, resc, newLocationFile, ex.getLocalizedMessage()));
}
}