static DefaultPlaceholderId createWithFactories ( String name , Iterable < TagFactory > tagFactories , Registry registry ) { if ( tagFactories == null ) { return new DefaultPlaceholderId ( name , registry ) ; } else { FactorySorterAndDeduplicator sorter = new FactorySorterAndDeduplicator ( tagFactories ) ; return new DefaultPlaceholderId ( name , sorter . asCollection ( ) , registry ) ; } }
Creates a new id with the specified name and collection of factories .