if (abstractKey instanceof ActuatorStateKey) {
dao = new ActuatorStateDAO(((ActuatorStateKey) abstractKey).getActuator(),
getErrorController());
}
else if (abstractKey instanceof SensorStateKey) {
dao = new SensorStateDAO(((SensorStateKey) abstractKey).getSensor(),
getErrorController());
}
else if (abstractKey instanceof TimebaseStateKey) {
dao = new TimebaseStateDAO(((TimebaseStateKey) abstractKey).getTimebase(),
getErrorController());