conn = dataSource.getConnection();
cStmt = conn.prepareCall("{call addImportFolder(?,?)};");
for(Folder folder : folders){
cStmt.setInt(1,subscription.getId());
cStmt.setInt(2,folder.getId());
cStmt.addBatch();
}
int result[] = cStmt.executeBatch();
for(int i = 0; i < result.length; i++){
if(result[i] >= 0 ){
numUpdated++;