protected static < T extends Manifest > T removeFromEnvironment ( Environment environment , Class < T > type ) { String identifier = type . getName ( ) ; Object manifest = environment . get ( identifier ) ; if ( manifest != null ) { environment . set ( identifier , null ) ; } return type . cast ( manifest ) ; }
Removes and returns the Manifest from the Environment .