throw new DataFormatException("Incorrect resource root element '" + theLocalPart + "', expected: '" + definition.getName() + "'");
}
}
RuntimeResourceDefinition def = (RuntimeResourceDefinition) definition;
myInstance = def.newInstance();
if (myEntry != null) {
myEntry.setResource(myInstance);
}
push(new ElementCompositeState(this, def, myInstance));