stream = m_resource.openInputStream();
} catch (Exception e) {
m_reporter.error("%s", e.getMessage());
throw new IOException("Cannot read metadata", e);
}
StreamMetadataProvider provider = new StreamMetadataProvider(stream, m_reporter);
provider.setValidateUsingLocalSchemas(m_validateUsingLocalSchemas);
m_cached.addAll(provider.getMetadatas());
}
return m_cached;
}