public ClassifierReference(QualifiedName qualifiedName,URI uri){
  this.classifierName=qualifiedName.getLastSegment();
  List<String> frontSegments=qualifiedName.getSegments();
  if (frontSegments.size() > 0) {
    StringJoiner joiner=new StringJoiner(N4JSQualifiedNameConverter.DELIMITER);
    for (    String segment : frontSegments.subList(0,frontSegments.size() - 1)) {
      joiner.add(segment);
    }
    this.classifierModuleSpecifier=joiner.toString();
  }
 else {
    this.classifierModuleSpecifier="";
  }
  this.uri=uri;
}

public ClassifierReference ( QualifiedName qualifiedName , URI uri ) { this . classifierName = qualifiedName . getLastSegment ( ) ; List < String > frontSegments = qualifiedName . getSegments ( ) ; if ( frontSegments . size ( ) > 0 ) { StringJoiner joiner = new StringJoiner ( N4JSQualifiedNameConverter . DELIMITER ) ; for ( String segment : frontSegments . subList ( 0 , frontSegments . size ( ) - 1 ) ) { joiner . add ( segment ) ; } this . classifierModuleSpecifier = joiner . toString ( ) ; } else { this . classifierModuleSpecifier = "" ; } this . uri = uri ; }
creates a resolved classifier reference . this means a classifier with a valid uri of its declaration .
