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