} else if (myUDFImageBuilderFile.getFileType() == UDFImageBuilderFile.FileType.Directory) {
fileType = 1;
}
if (myUDFImageBuilderFile.getFileType() == UDFImageBuilderFile.FileType.File) {
myStreamHandler.data(new FileDataReference(myUDFImageBuilderFile.getSourceFile())); // source file
myStreamHandler.data(new WordDataReference(dataLocation)); // data location
} else if (myUDFImageBuilderFile.getFileType() == UDFImageBuilderFile.FileType.Directory) {
// get child files and pass required information
UDFImageBuilderFile[] childUDFImageBuilderFiles = myUDFImageBuilderFile.getChilds();