public void setValue(ELContext context, Object base, Object property, Object value) {

        if (base != null) {
            return;
        }
        if (property == null) {
            throw new PropertyNotFoundException("No property specified");
        }

        context.setPropertyResolved(true);
        String key = property.toString();
        Object result = null;
        FacesContext fcontext = (FacesContext) context.getContext(FacesContext.class);
        ExternalContext econtext = fcontext.getExternalContext();

        if (econtext.getRequestMap().containsKey(property)) {
            econtext.getRequestMap().put(key, value);
        } else if (econtext.getSessionMap().containsKey(property)) {
            econtext.getSessionMap().put(key, value);
        } else if (econtext.getApplicationMap().containsKey(property)) {
            econtext.getApplicationMap().put(key, value);
        } else {
            econtext.getRequestMap().put(key, value);
        }

    }