//
if ( groupValueFirstMatching != null )
{
//
MatchResultGroupReplacer matchResultGroupReplacer = new MatchResultGroupReplacer( matcher.toMatchResult() );
Map<Integer, String> groupIndexToNewValueMap = new HashMap<Integer, String>();
{
for ( Integer groupIndex : groupingPatternGroupIndexMatchingList )
{
groupIndexToNewValueMap.put( groupIndex, this.groupingPatternReplacementToken );
}
}
//
String fileGroupIdentifier = matchResultGroupReplacer.replaceGroups( groupIndexToNewValueMap );
String groupToken = groupValueFirstMatching;
//
if ( !retmap.containsKey( fileGroupIdentifier ) )
{