src/main/java/org/xmlet/xsdparser/xsdelements/XsdAttribute.java
@Override
    public void replaceUnsolvedElements(NamedConcreteElement elementWrapper) {
        super.replaceUnsolvedElements(elementWrapper);

        XsdAbstractElement element = elementWrapper.getElement();

        if (element instanceof XsdSimpleType && simpleType != null && type.equals(elementWrapper.getName())){
            this.simpleType = elementWrapper;
        }
    }
@Override
    public void replaceUnsolvedElements(NamedConcreteElement elementWrapper) {
        super.replaceUnsolvedElements(elementWrapper);

        XsdAbstractElement element = elementWrapper.getElement();

        if (element instanceof XsdSimpleType && simpleType != null && type.equals(elementWrapper.getName())){
            this.simpleType = elementWrapper;
        }
    }
Receives a {@link NamedConcreteElement} that should be the one requested earlier.
* In the {@link XsdAttribute} constructor:
this.simpleType = new UnsolvedReference(type, placeHolder);
XsdParser.getInstance().addUnsolvedReference((UnsolvedReference) this.simpleType);
This implies that the object being received is the object that is being referred with the {@link XsdAttribute#type}
String.
@param elementWrapper The object that should be wrapping the requested {@link XsdSimpleType} object.