code: public static Map<String, String> toMap(List<EntityMetadata> metadata) {
  		
  		Map<String, String> map = new LinkedHashMap<String, String>();
  		
  		if(CollectionUtils.isNotEmpty(metadata)) {
  			
  			for(EntityMetadata m : metadata) {
  				
  				map.put(m.getName(), m.getValue());
  				
  			}
  		
  		}
  		
  		return map;
  		
  	}
docs: Converts a list of {@link EntityMetadata} to a map.
  @param metadata A list of {@link EntityMetadata}.
  @return A map that contains the entity metadata.