public PatternReference(String id,Word... tokens){
  this.id=id;
  this.tokens=Arrays.asList(tokens);
}

public PatternReference ( String id , Word ... tokens ) { this . id = id ; this . tokens = Arrays . asList ( tokens ) ; }
instantiates a new pattern reference .
