public State waitForDeploy(String resourceName, boolean allowIncomplete) {
		if (allowIncomplete) {
			return waitForDeployState(resourceName, State.deployed, State.incomplete);
		}
		return waitForDeployState(resourceName, State.deployed);
	}
Wait for a named resource to be deployed.
@param resourceName the name of the resource being deployed
@param allowIncomplete if true, will return on State.incomplete or State.deployed
@return one of the expected States or the current State when this operation timed out.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/test/ResourceStateVerifier.java