if (dao == null) {
if (abstractKey instanceof ScanResult2DKey) {
dao = new ScanResult2DDAO(getErrorController());
}
else if (abstractKey instanceof ActuatorKey) {
dao = new ActuatorImageDAO(((ActuatorKey) abstractKey).getActuator(),
getErrorController());
}
else if (abstractKey instanceof SensorKey) {
dao = new SensorImageDAO(((SensorKey) abstractKey).getSensor(),
getErrorController());