@Override public Object get(Object key) { Collection coll = ctxtMgr.getValue((String) key); if (coll.isEmpty()) throw new VariableNotSetException((String) key); return CollectionUtils.getFirstElement(coll); }
@Override public Collection getValue(String name) throws VariableNotSetException { // remove prefix (if there) name = cutoffPre(name); Object result = _getValue(name); if (result == null) throw new VariableNotSetException(name); else return (Collection)result; }