protected boolean fileExistsOnXDInstance(String host, String path){
		Assert.hasText(host, "host must not be null nor empty");
		Assert.hasText(path, "path must not be null nor empty");
		boolean exists = false;
		if (isOnEc2){
			exists = StreamUtils.fileExists(host,xdEnvironment.getPrivateKey(),path);
		}else{
			File file = new File(path);
			exists = file.exists();
		}
		return exists;
		
	}
Checks for file or dir on the XD instance and returns true when file is present
else false.
@param host The host url  where the file is be stored
@param path The URI of the directory or file
@return True if file is present before waitTime is expired else false.
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/AbstractIntegrationTest.java