public static void setSortActionListener(UIData data, String actionListener) {
final FacesContext facesContext = FacesContext.getCurrentInstance();
final Application application = facesContext.getApplication();
if (actionListener != null) {
if (UIComponentTag.isValueReference(actionListener)) {
MethodBinding binding = application.createMethodBinding(
actionListener, ACTION_LISTENER_ARGS);
data.setSortActionListener(binding);
} else {
throw new IllegalArgumentException(
"Must be a valueReference (sortActionListener): " + actionListener);