protected void validateParameters ( Map < String , Value > callParameters ) { for ( String name : callParameters . keySet ( ) ) { if ( ! parameters . containsKey ( name ) ) throw new IllegalParametersException ( "Parameter not supported: " + name ) ; } for ( Map . Entry < String , MethodParameter > entry : parameters . entrySet ( ) ) { if ( entry . getValue ( ) . isOptional ( ) ) continue ; if ( ! callParameters . containsKey ( entry . getKey ( ) ) ) { throw new IllegalParametersException ( "Parameter not supplied: " + entry . getKey ( ) ) ; } } }
Validates the parameters .