UnmarshallingContext ctx = getUnmarshallingContext(input, type);
if (JibxSimpleTypes.isSimpleType(type)) {
QName stype = part.getTypeQName();
QName ctype = part.getConcreteName();
if (ctx.isAt(ctype.getNamespaceURI(), ctype.getLocalPart())) {
String text = ctx.parseElementText(ctype.getNamespaceURI(), ctype.getLocalPart());
return JibxSimpleTypes.toObject(text, stype);
} else {
throw new RuntimeException("Missing required element [" + ctype + "]");
}
} else {