fix unchecked conversion warnings in BulkService.java