if (dao == null) {
if (abstractKey instanceof ScanResult1DKey) {
dao = new ScanResult1DDAO(getErrorController());
}
else if (abstractKey instanceof ActuatorKey) {
dao = new ActuatorSpectrumDAO(((ActuatorKey) abstractKey).getActuator(),
getErrorController());
}
else if (abstractKey instanceof SensorKey) {
dao = new SensorSpectrumDAO(((SensorKey) abstractKey).getSensor(),
getErrorController());