question: public synchronized CodeTemplate removeTemplate ( String id ) { if ( id == null ) { throw new IllegalArgumentException ( "id cannot be null" ) ; } for ( Iterator i = templates . iterator ( ) ; i . hasNext ( ) ; ) { CodeTemplate template = ( CodeTemplate ) i . next ( ) ; if ( id . equals ( template . getID ( ) ) ) { i . remove ( ) ; return template ; } } return null ; }
target:  Returns the code template with the specified id.