try {
// fall back to evaluating an expression assuming there is just one parameter (RF-11469)
itemsObject = autocomplete.getAutocompleteMethodWithOneParameter().invoke(facesContext.getELContext(), new Object[] { value });
} catch (MethodNotFoundException e2) {
ExpressionFactory expressionFactory = facesContext.getApplication().getExpressionFactory();
autocompleteMethod = expressionFactory.createMethodExpression(facesContext.getELContext(),
autocompleteMethod.getExpressionString(), Object.class, new Class[] { String.class });
itemsObject = autocompleteMethod.invoke(facesContext.getELContext(), new Object[] { value });
}
}
} catch (ELException ee) {