name = part.getTypeQName();
}
Mapping mapping = model.get(name);
//String clsName = null;
JType jType = null;
if (mapping != null) {
jType = mapping.getType().getTypeClass();
}
if (jType == null) {
TypeAndAnnotation typeAndAnnotation = model.getJavaType(part.getTypeQName());
if (typeAndAnnotation != null) {
jType = typeAndAnnotation.getTypeClass();
}
}
if (jType == null) {
throw new ServiceConstructionException(new Message("NO_JAXB_CLASS", LOG, name));
}
Class cls;
//JClass jclass;
try {
if (!jType.isPrimitive()) {
cls = ClassLoaderUtils.loadClass(jType.fullName(), getClass());
} else {
cls = PrimitiveUtils.getClass(jType.fullName());
}
} catch (ClassNotFoundException e) {
throw new ServiceConstructionException(e);
}