if (type instanceof OConstantVarType) {
typeQName = new QName(Namespaces.XML_SCHEMA, "string", "xs");
} else if (type instanceof OElementVarType) {
typeQName = ((OElementVarType) type).elementType;
} else if (type instanceof OMessageVarType) {
Part part = ((OMessageVarType) type).parts.get(getVariablePartName(variableName));
if (part != null) {
typeQName = getTypeQName(variableName, part.type);
}
} else if (type instanceof OXsdTypeVarType) {
typeQName = ((OXsdTypeVarType) type).xsdType;