if (dao == null) {
if (abstractKey instanceof ActuatorKey) {
ActuatorKey actuatorKey = (ActuatorKey) abstractKey;
ActuatorScalarDAO actuatorScalarDAO = new ActuatorScalarDAO(actuatorKey
.getActuator(), getErrorController());
switch (actuatorKey.getDataMode()) {
case READ:
actuatorScalarDAO.setDataMode(AActuatorDAO.DataMode.READ);
break;
case WRITE:
actuatorScalarDAO.setDataMode(AActuatorDAO.DataMode.WRITE);
break;
}
dao = actuatorScalarDAO;
}