private void removeInvalidServices ( Map < ServiceKey , Service > map ) { for ( Iterator t = map . entrySet ( ) . iterator ( ) ; t . hasNext ( ) ; ) { Map . Entry entry = ( Map . Entry ) t . next ( ) ; Service s = ( Service ) entry . getValue ( ) ; if ( s . isValid ( ) == false ) { t . remove ( ) ; } } }
Remove all invalid services from the Map . Invalid services can only occur if the legacy properties are inconsistent or incomplete .