protected < T > T getParameter ( String name , Class < T > type ) { if ( parameters == null ) { throw new BugError ( "Event stream |%s| parameters not configured." , this ) ; } String value = parameters . get ( name ) ; if ( value == null ) { throw new BugError ( "Missing event stream parameter |%s| of expected type |%s|." , name , type ) ; } return ConverterRegistry . getConverter ( ) . asObject ( value , type ) ; }
Get named parameter throwing exception if not found .