FileReference () { FileReference lastReference = super.getLastReference(); if (lastReference != null && lastReference.getCanonicalText().endsWith(getSeparatorString())) { return this.myReferences != null && this.myReferences.length > 1 ? this.myReferences[this.myReferences.length - 2] : null; } return lastReference; }