private DefaultPlaceholderId createNewId ( Consumer < FactorySorterAndDeduplicator > consumer ) { FactorySorterAndDeduplicator sorter = new FactorySorterAndDeduplicator ( tagFactories ) ; consumer . accept ( sorter ) ; return new DefaultPlaceholderId ( name , sorter . asCollection ( ) , registry ) ; }
Creates a new dynamic id based on the factories associated with this id and whatever additions are made by the specified consumer .