public void setParameters(HashMap<String, Object> parameters){
		Field[] fields = this.getClass().getFields();
		for(Field f:fields){
			for(Entry<String, Object> p:parameters.entrySet()){
				if(f.getName().equalsIgnoreCase(p.getKey())){
					try{
						if(f.getType() == int.class || f.getType() == Integer.class){
							f.setInt(this, Integer.parseInt(p.getValue().toString()));
						}
						else if(f.getType() == double.class || f.getType() == Double.class){
							f.setDouble(this, Double.parseDouble(p.getValue().toString()));
						}
						else{
							f.set(this, f.getType().cast(p.getValue()));
						}
					}
					catch(Exception e){
						e.printStackTrace();	
					}
				}
			}
		}
	}