* @param type
* @param mapping
* @return qualified name
*/
private QName getMappingQName(String type, MappingElement mapping) {
MappingDetail detail = m_schemaGenerator.getMappingDetail(mapping);
if (detail == null) {
throw new IllegalStateException("No mapping found for type " + type);
} else if (detail.isType()) {
return detail.getTypeName();
} else {
throw new IllegalStateException("Need abstract mapping for type " + type);
}
}