if (file != null && file.isDirectory())
uri = file.toURI().toString();
if (uri != null) {
SourceStream stream = ssf.newSourceStream(URI.create(uri));
if (stream == null)
throw new BuildException("The URI '" + uri + "' is not supported by the stream factory of type '" +
type + "'.");
if (stream instanceof AbstractIncludableSource)