pstmt.setLong(1, templateId);
pstmt.setLong(2, accountId.longValue());
pstmt.addBatch();
}
pstmt.executeBatch();
txn.commit();
} catch (Exception e) {
txn.rollback();
s_logger.warn("Error removing launch permissions", e);
throw new CloudRuntimeException("Error removing launch permissions", e);
}