if (logger.isLoggable(Level.FINE)) {
logger.fine("Using instantiator defined in class: " + instantiator.getClass().getName() + ", " +
"with precedence " + instantiator.getPrecedence());
}
beforeDroneCallableCreatedEvent.fire(new BeforeDroneCallableCreated(instantiator, dronePoint));
<BUG>CachingCallable futureDrone = new CachingCallableImpl<DRONE>() {
</BUG>
@Override
protected DRONE createInstance() throws Exception {
<BUG>DroneConfiguration<?> configuration = context.getDroneConfiguration(dronePoint,
DroneConfiguration.class);
return (DRONE) instantiator.createInstance(configuration);</BUG>
}

if (logger.isLoggable(Level.FINE)) {
logger.fine("Using instantiator defined in class: " + instantiator.getClass().getName() + ", " +
"with precedence " + instantiator.getPrecedence());
}
beforeDroneCallableCreatedEvent.fire(new BeforeDroneCallableCreated(instantiator, dronePoint));
CachingCallable<DRONE> futureDrone = new CachingCallableImpl<DRONE>() {
@Override
protected DRONE createInstance() throws Exception {
DroneConfiguration<?> configuration = context
.get(dronePoint)
.getConfigurationAs(DroneConfiguration.class);
return (DRONE) instantiator.createInstance(configuration);
}
