public void consolidateMultiplePaths ( ) { Map < String , Set < ResourceMethod > > oldResources = resources ; resources = new HashMap <> ( ) ; oldResources . keySet ( ) . forEach ( s -> consolidateMultipleMethodsForSamePath ( s , oldResources . get ( s ) ) ) ; }
Consolidates the information contained in multiple responses for the same path . Internally creates new resources .