/*
 * 
 */
package com.fp.simple.flow;

import java.io.Serializable;
import java.util.HashMap;

// TODO: Auto-generated Javadoc
/**
 * Class DataMap encargada de.
 * 
 * @author gfiallos
 */
public class DataMap extends HashMap<String, Object> implements Serializable {

    /** serialVersionUID. */
    private static final long serialVersionUID = 1L;

    /**
     * Obtiene el valor de.
     * 
     * @param pKey the key
     * @return object
     */
    @Override
    public Object get(Object pKey) {
        Object val = super.get(pKey);
        String key = (String) pKey;
        if ((val == null) && (key.compareTo("userId") != 0) && (key.compareTo("groupId") != 0)) {
            throw new RuntimeException("NO SE HA ENCONTRADO LA VARIABLE " + pKey);
        }
        return val;
    }

}
