public Object getAsObject(FacesContext context, UIComponent component, String value) {
if (value == null || value.length() == 0) {
return null;
}
Integer id = new Integer(value);
UserJpaController controller = (UserJpaController) context.getApplication().getELResolver().getValue(context.getELContext(), null, "userJpa");
return controller.findUser(id);
}