referencePath = reference.replace("::", tmpPath);
referencePath = referencePath.replaceAll(":", "/");
//referencePath += "." + scriptType;
} else {
VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(referer);
if (versionCompliance != null && versionCompliance.toWGAVersion() != null && versionCompliance.toWGAVersion().isAtLeast(5, 4)) {
if (reference.endsWith("@base")) {
IPath path = referer.getFullPath();
if (path.toString().contains("/overlay/")) {
// this is a base reference in an overlay provider - remove @base marker and add overlay root
reference = reference.substring(0, reference.lastIndexOf("@"));