public  String getMapValue(Field field) throws IllegalAccessException{

        Map<String, String> newMap = new HashMap<String, String>();
        Map<?, ?> map = (Map)field.get(obj);
        int m = 0;

        for (Map.Entry entry : map.entrySet()) {
            if (m < getMaxAmount(field)) {
                newMap.put(entry.getKey().toString(), entry.getValue().toString());
            }
            m++;
        }
       return newMap.toString();
    }