public static ExpressionException invalidKey(Map map,Key key) {
StringBuilder sb=new StringBuilder();
Iterator<Key> it = map.keySet().iterator();
Key k;
while(it.hasNext()){
k = it.next();
if( k.equals( key ) )
return new ExpressionException( "the value from key [" + key.getString() + "] is NULL, which is the same as not existing in CFML" );
if(sb.length()>0)sb.append(',');
sb.append(k.getString());
}
return new ExpressionException( "key [" + key.getString() + "] doesn't exist (existing keys:" + sb.toString() + ")" );
}