return;
}
Configurator<DRONE, ?> configurator = registry.getEntryFor(dronePoint.getDroneType(), Configurator.class);
beforeDroneConfiguredEvent.fire(new BeforeDroneConfigured(configurator, dronePoint));
DroneConfiguration configuration;
<BUG>if (!context.isDroneConfigurationStored(dronePoint)) {
configuration = configurator.createConfiguration(descriptor, dronePoint);
context.storeDroneConfiguration(dronePoint, configuration);
} else {
configuration = context.getDroneConfiguration(dronePoint, DroneConfiguration.class);
</BUG>
}

return;
}
Configurator<DRONE, ?> configurator = registry.getEntryFor(dronePoint.getDroneType(), Configurator.class);
beforeDroneConfiguredEvent.fire(new BeforeDroneConfigured(configurator, dronePoint));
DroneConfiguration configuration;
if (!context.get(dronePoint).hasConfiguration()) {
configuration = configurator.createConfiguration(descriptor, dronePoint);
context.get(dronePoint).setConfiguration(configuration);
} else {
configuration = context.get(dronePoint).getConfigurationAs(DroneConfiguration.class);
}
