private List < RequestHandler2 > resolveRequestHandlers ( ) { return ( requestHandlers == null ) ? new ArrayList < RequestHandler2 > ( ) : new ArrayList < RequestHandler2 > ( requestHandlers ) ; }
Request handlers are copied to a new list to avoid mutation if no request handlers are provided to the builder we supply an empty list .