}
private boolean waitForDeploy(StreamDefinition definition, Map<String, String> properties, boolean allowIncomplete) {
streamDeployer.deploy(definition.getName(), properties);
State state = streamResourceStateVerifier.waitForDeploy(definition.getName(), allowIncomplete);
if (allowIncomplete) {
return state.equals(State.deployed) || state.equals(State.incomplete);
}
return state.equals(State.deployed);
}