public void setMetadata(Screen s){
		//System.out.println("EuscreenxlitemApplication.setMetadata()");
		
		FsNode node = (FsNode) s.getProperty("mediaNode");
		if (node==null) return; // added by daniel.
		
		String path = node.getPath();
		String[] splits = path.split("/");
		String provider = splits[4];
		String id = s.getParameter("id");
		
		
		/*try {
			sendCounter(id,provider, ipAddress);
			//System.out.println("COUNTER sent!-------");
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			//System.out.println("COUNTER not sent!");
			e1.printStackTrace();
		}*/
		
		
		if(!this.countriesForProviders.containsKey(provider)){
			FsNode providerNode = Fs.getNode("/domain/euscreenxl/user/" + provider + "/account/default");
			try{
				String fullProviderString = providerNode.getProperty("birthdata");
				this.countriesForProviders.put(provider, fullProviderString);
			}catch(NullPointerException npe){
				this.countriesForProviders.put(provider, node.getProperty(FieldMappings.getSystemFieldName("provider")));
			}
		}
		
		JSONObject message = new JSONObject();
		
		HashMap<String, String> mappings = FieldMappings.getMappings();
		for(Iterator<String> i = mappings.keySet().iterator(); i.hasNext();){
			String readable = i.next();
			String systemName = mappings.get(readable);
			
			try{
				String value = node.getProperty(FieldMappings.getSystemFieldName(readable));
				if(value.trim().length() > 0){
					message.put(readable, node.getProperty(FieldMappings.getSystemFieldName(readable)));
				}else{
					message.put(readable, "-");
				}
			}catch(NullPointerException npe){
				message.put(readable, "-");
			}
		}
		
		message.put("type", node.getName());
		String fullProviderStr = this.countriesForProviders.get(provider);
		String[] providerSplits = fullProviderStr.split("/");
		if(providerSplits.length > 1){
			message.put("provider", message.get("provider") + " / " + providerSplits[1]);
		}
		//message.put("provider")
		//message.put("provider", this.countriesForProviders.get(provider));
		s.putMsg("metadata", "", "setData(" + message + ")");
	
	}