protected void createFile(String record, int recordsCount)
throws IOException, FileNotFoundException, FinalizationException, LockException {
FileService fileService = FileServiceFactory.getFileService();
AppEngineFile blobFile = fileService.createNewBlobFile("application/bin");
FileWriteChannel writeChannel = fileService.openWriteChannel(blobFile, true);
for (int i = 0; i < recordsCount; i++) {
writeChannel.write(ByteBuffer.wrap(record.getBytes()));
}
writeChannel.closeFinally();
blobKey = fileService.getBlobKey(blobFile);