public boolean removeBody ( String language ) { language = determineLanguage ( language ) ; for ( Body body : getBodies ( ) ) { String bodyLanguage = body . getLanguage ( ) ; if ( Objects . equals ( bodyLanguage , language ) ) { removeExtension ( body ) ; return true ; } } return false ; }
Removes the body with the given language from the message .