public Reader_factory get_reader(int id) {
	   Reader_factory reader = null;
	   if(readers == null) return null;
	   List listreaders = readers.getChildren();
	   if (listreaders != null){
		   Iterator i = listreaders.iterator();
		   while(i.hasNext()){
			   Element current = (Element)i.next();
			   int currid = Integer.parseInt(current.getAttributeValue("id"));
			   if(currid == id) {
				   String user = current.getAttributeValue("userid");
				   int userid = 0;
				   if(user != null)
					   userid = Integer.parseInt(user);
				   
				   
				   reader = new Reader_factory(currid, current.getAttributeValue("manufacturer"),
						   current.getAttributeValue("name"),
						   current.getAttributeValue("picture"),
						   current.getAttributeValue("port"),
						   userid );
				   //System.out.println("Reader found "+reader.name);
				   return reader;
			   }
		   }
	   }
	   return null;	//Not found
   }