if (injectionPoint.getLifecycle() != InjectionPoint.Lifecycle.DEPLOYMENT) {
log.log(Level.WARNING, "Injection point {0} was not prepared yet. It will be prepared now, " +
"but it''s recommended that all drones with class lifecycle are prepared in " +
"@BeforeClass!", injectionPoint);
prepareDroneCommand.fire(new PrepareDrone(injectionPoint));
} else {
throw new IllegalStateException(MessageFormat.format("Injection point {0} has deployment lifecycle " +
"and has to be prepared in @BeforeClass.", injectionPoint));
}
}