public void setResourceRef(String resourceUri) { if (getResourceRef() != null) {  setResourceRef(new Reference(getResourceRef().getBaseRef(), resourceUri)); } else { setResourceRef(new Reference(resourceUri)); }
public void setResourceRef(Reference resourceRef) { this.resourceRef = resourceRef;
    public void setResourceRef(String resourceUri) {        if (getResourceRef() != null) {            // Allow usage of URIs relative to the current base reference            setResourceRef(new Reference(getResourceRef().getBaseRef(),                    resourceUri));        } else {            setResourceRef(new Reference(resourceUri));        }    }