/* 686 */ return xsmodel.getTypeDefinition(xmlType.getLocalPart(), xmlType.getNamespaceURI());
/* */ }
/* */
/* */ private void addJavaXMLTypeMap(XSTypeDefinition xt, String name, String containingElement, String containingType, JavaWsdlMapping jwm, boolean skipWrapperArray)
/* */ {
/* 691 */ JavaXmlTypeMapping jxtm = null;
/* */
/* 693 */ if ((xt instanceof XSComplexTypeDefinition))
/* */ {
/* 696 */ XSModelGroup xm = null;
/* 697 */ XSComplexTypeDefinition xc = (XSComplexTypeDefinition)xt;
/* 698 */ if (xc.getContentType() != 0)
/* */ {
/* 700 */ XSParticle xp = xc.getParticle();
/* 701 */ if (xp != null)
/* */ {
/* 703 */ XSTerm xterm = xp.getTerm();
/* 704 */ if ((xterm instanceof XSModelGroup)) {
/* 705 */ xm = (XSModelGroup)xterm;
/* */ }
/* */ }
/* */ }
/* 709 */ if (((skipWrapperArray) && (SchemaUtils.isWrapperArrayType(xt)) ? 1 : 0) == 0)
/* */ {
/* 711 */ jxtm = new JavaXmlTypeMapping(jwm);
/* */
/* 713 */ String localName = xt.getName();
/* */ String javaType;
/* 716 */ if (localName == null)
/* */ {
/* 718 */ String javaType = getJavaTypeAsString(null, new QName(containingElement + name), false, true);
/* 719 */ StringBuilder temp = new StringBuilder();
/* 720 */ if ((containingType != null) && (containingType.length() > 0))
/* 721 */ temp.append(">").append(containingType);
/* 722 */ temp.append(">").append(name);
/* 723 */ localName = temp.toString();
/* 724 */ jxtm.setAnonymousTypeQName(new QName(xt.getNamespace(), localName, "typeNS"));
/* */ }
/* */ else
/* */ {
/* 728 */ javaType = getJavaTypeAsString(null, new QName(localName), false, true);
/* 729 */ jxtm.setRootTypeQName(new QName(xt.getNamespace(), xt.getName(), "typeNS"));
/* */ }
/* */
/* 732 */ if (this.typeNamespace == null)
/* */ {
/* 734 */ this.typeNamespace = xt.getNamespace();
/* */ }
/* */
/* 737 */ if (this.registeredTypes.contains(javaType)) {
/* 738 */ return;
/* */ }
/* 740 */ jxtm.setJavaType(javaType);
/* 741 */ jxtm.setQNameScope("complexType");
/* */
/* 743 */ this.registeredTypes.add(javaType);
/* 744 */ jwm.addJavaXmlTypeMappings(jxtm);
/* */
/* 747 */ if (xm != null)