XMLStreamReader reader,
DeploymentContext deploymentContext)
throws XMLStreamException, LoaderException {
assert INTERFACE_JAVA.equals(reader.getName());
InteractionScope interactionScope = StAXUtil.interactionScope(reader.getAttributeValue(null, "scope"));
String name = reader.getAttributeValue(null, "interface");
if (name == null) {
// allow "class" as well as seems to be a common mistake
name = reader.getAttributeValue(null, "class");
}