dataModule.setDirSource(false);
dataModule.setDirDump(false);
dataModule.setUseDirSourceFilters(false);
dataModule.setRecursive(false);
dataModule.setMetadata(new Metadata(new Data()));
dataModule.getFileTypes().addFileType(new FileType(TavernaType,"",""));
// Figure out whether the data module will have inputs or outputs by going through the
// DataLinks and figuring out if one of their source or sink names matches the
// ports name. Then you can generate inputs or outputs for the data module depending
// on what you need