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