code: public Map<OMDBMediaType, String> mkCSVs(Collection<OMDBMediaType> omTypes) throws JSONException, IOException {
  		
  		
  		Map<OMDBMediaType, String> omdbTypes2CSV = new HashMap<OMDBMediaType, String>();
  	
  		for(int i = STARTING_OMDB_ID ; i < (STARTING_OMDB_ID + NUMBER_OF_OMDB_PRODUCTS); i++)	{
  					
  			 OMDBProduct p  = createProductFromJson(idToJson(i)) ;
  			 			 
  			 
  			 if (p != null)
  			 {
  				 // seeking if it is a movie, an episode, etc.
  				 String oType = p.getType();
  				 boolean found = false;
  				 for (OMDBMediaType omType : omTypes) {					
  					 if(oType.equals(omType.toString())) { 
  						 found = true;
  						 String pdt = omdbTypes2CSV.get(omType);
  						 if (pdt == null)
  							 omdbTypes2CSV.put(omType, "");
  						 else {							 
  							 pdt += OMDBCSVProductFactory.getInstance().mkCSVProduct(p, omType) + System.getProperty("line.separator");
  							 omdbTypes2CSV.put(omType, pdt);
  						 }
  					 }					 
  				}
  				//if(!found) 
  					// _log.warning("Unknown type " + oType);  
  						 
  			 }
  			 
  			 else {
  				 _log.warning("Unable to load OMDB entry " + i);  
  			 }
  		}
  				
  		return omdbTypes2CSV;		
  	}
docs: TODO generalize and design a "filter" for retaining only some OMDB entries
  @param omTypes OMDB entries can be movies, series, episodes, etc.
  @return a CSV representation of all OMDB entries that are of one of the type specified by omTypes
  @throws JSONException
  @throws IOException