/* 56 */ String nsuri = xmlType.getNamespaceURI();
/* 57 */ Class componentType = javaType;
/* 58 */ while (componentType.isArray()) {
/* 59 */ componentType = componentType.getComponentType();
/* */ }
/* 61 */ JavaToXSD javaToXSD = new JavaToXSD();
/* */
/* 64 */ if (!componentType.isPrimitive())
/* */ {
/* 66 */ Map namespaceMap = new HashMap();
/* 67 */ namespaceMap.put(componentType.getPackage().getName(), nsuri);
/* 68 */ javaToXSD.setPackageNamespaceMap(namespaceMap);
/* */ }
/* */
/* 71 */ JBossXSModel xsModel = javaToXSD.generateForSingleType(xmlType, javaType);
/* 72 */ if (xsModel == null) {
/* 73 */ throw new WSException("Cannot generate XSModel");
/* */ }
/* 75 */ if (log.isDebugEnabled()) log.debug("\n" + xsModel.serialize());
/* 76 */ return xsModel;