src/main/java/js/net/EventStream.java
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);
	}
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);
	}
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.

@param name requested parameter name,
@param type desired parameter type.
@param <T> parameter type.
@return named parameter instance.
@throws BugError if named parameter does not exist.
Get named parameter throwing exception if not found .