code: public static List<Object> filterMapToList(final Map<String, ?> map, final String[] nameMapping) {
  		if( map == null ) {
  			throw new NullPointerException("map should not be null");
  		} else if( nameMapping == null ) {
  			throw new NullPointerException("nameMapping should not be null");
  		}
  		
  		final List<Object> result = new ArrayList<Object>(nameMapping.length);
  		for( final String key : nameMapping ) {
  			result.add(map.get(key));
  		}
  		return result;
  	}
docs: Returns a List of all of the values in the Map whose key matches an entry in the nameMapping array.
  
  @param map
  the map
  @param nameMapping
  the keys of the Map values to add to the List
  @return a List of all of the values in the Map whose key matches an entry in the nameMapping array
  @throws NullPointerException
  if map or nameMapping is null