private File file;
private String type, uri, platforms, locales;
private List<PropertyType> properties = new ArrayList<PropertyType>();
public void apply(NicProject project) throws BuildException {
SourceStreamFactory ssf = SourceStreamFactory.getInstance(type);
if (ssf == null)
throw new BuildException("The type '" + type + "' is not a known source stream type.");
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)