tobj = new java.math.BigDecimal("0");
tobj = "";
    private void setParameter(Query query, String parameterName,			      Object value) {        Object tobj;	if (value == null) {	    tobj = new java.math.BigDecimal("0");	} else if (value instanceof Collection) {            Collection c = (Collection) value;            if (c.size() == 0) {                throw new Error("zero sized collection");            } else {                tobj = c.iterator().next();            }        } else {            tobj = value;        }        Signature sig = query.getSignature();        Path path = Path.get(parameterName);        Parameter p = sig.getParameter(path);        if (p == null) {            // XXX: should add notion of multiplicity to Parameter            p = new Parameter(m_pssn.getObjectType(tobj), path);            sig.addParameter(p);        }        query.set(p, value);    }