class SpotifySpeech {

	@Intent()
	public String setDeviceName(Map<String, EntityData> entites) {
		for (DeviceEntity device : this.deviceLogic.getDevices()) {
			if (device.getName().equalsIgnoreCase(entites.get("devicename").getString())) {
				this.deviceLogic.setDevice(device.getID());
				return device.getName();
			}
		}
		return "Device not found";
	}

}