throws Exception
{
final RefPackage model = this.createModel(metaModel);
if (modelStreams != null)
{
final XmiReader xmiReader =
this.getXMIReaderFactory().createXMIReader(
new MDRXmiReferenceResolver(
new RefPackage[] {model},
moduleSearchPaths));
try
{
final int streamNumber = modelStreams.length;
for (int ctr = 0; ctr < streamNumber; ctr++)
{
final InputStream stream = modelStreams[ctr];
String uri = null;
if (uris != null)
{
uri = uris[ctr];
}
if (stream != null)
{
xmiReader.read(
stream,
uri,
model);
}
}