for (final Iterator<?> i = executiondataElement.iterator(); i.hasNext();) {
final Resource resource = (Resource) i.next();
InputStream in = null;
try {
in = new BufferedInputStream(resource.getInputStream());
final ExecutionDataReader reader = new ExecutionDataReader(in);
reader.setExecutionDataVisitor(data);
reader.read();
} catch (final IOException e) {
throw new BuildException("Unable to read execution data file "
+ resource.getName(), e);
} finally {
FileUtils.close(in);