}
public MethodExpression createMethodExpression(ELContext context,
String expression, Class expectedReturnType,
Class[] expectedParamTypes) {
ExpressionBuilder builder = new ExpressionBuilder(expression, context);
MethodExpression me = builder.createMethodExpression(expectedReturnType,
expectedParamTypes);
if (expectedParamTypes == null && !me.isParametersProvided()) {
throw new NullPointerException(MessageFactory
.get("error.method.nullParms"));
}