@SuppressWarnings("unchecked")
	public Provider createProvider(String token, HashMap<String, Object> provider){
		
		this.ID = "1000"+token;
		if(provider.containsKey("contact")) this.setContact((String)provider.get("contact"));
		if(provider.containsKey("name")) this.setName((String)provider.get("name"));
		if(provider.containsKey("picture")) this.setPicture((String)provider.get("picture"));
		
		if(provider.containsKey("account")){
			this.setAccount(new Account());
			this.getAccount().addAccount((HashMap<String, String>)provider.get("account"));
		}
		
		if(provider.containsKey("officeSpaces")){
			
			ArrayList<Object> spaces = (ArrayList<Object>)provider.get("officeSpaces");

			for(int i=0;i<spaces.size();i++){
				HashMap<Integer, Object> temp = new HashMap<Integer, Object>();
				temp.put(i, spaces.get(i));

				OfficeSpace OS = new OfficeSpace();
				this.officeSpaces.add(OS.createOfficeSpace(token,(HashMap<String, Object>)temp.get(i)));
			}
			
		}
		
		return this;
	}