static final public NamesValues namesValuesOf(Map map){
		if (map == null){
			return new NamesValues(new String[0],new Object[0]);
		}

		Object[] keys = map.keySet().toArray();
		String[] names = new String[keys.length];
		Object[] vals = new Object[keys.length];

		for (int i = 0 ; i < vals.length; i++){
			Object key = keys[i];
			names[i] = keys[i].toString();
			vals[i] = map.get(keys[i]);
		}
		return new NamesValues(names,vals);
	}