int numDriftFiles = 2;
final List<JPADriftFileBits> driftFiles = new ArrayList<JPADriftFileBits>();
final List<String> driftFileHashIds = new ArrayList<String>();
Session session = (Session) em.getDelegate();
LobHelper lobHelper = session.getLobHelper();
for (int driftFileNum = 0; driftFileNum < numDriftFiles; ++driftFileNum) {
File dataFile = createDataFile("test_data.txt", 10, 'X');
String hashId = digestGen.calcDigestString(dataFile);
final JPADriftFileBits driftFile = new JPADriftFileBits(hashId);
driftFile.setDataSize(dataFile.length());
driftFile.setData(lobHelper.createBlob(new BufferedInputStream(new FileInputStream(dataFile)),
dataFile.length()));
driftFiles.add(driftFile);
dataFile.delete();
}