code: private void setBatchSize(String persistenceUnit, Map<String, Object> puProperties) {
          String batch_Size = null;
  
          PersistenceUnitMetadata puMetadata =
              KunderaMetadataManager.getPersistenceUnitMetadata(kunderaMetadata, persistenceUnit);
  
          String externalBatchSize =
              puProperties != null ? (String) puProperties.get(PersistenceProperties.KUNDERA_BATCH_SIZE) : null;
  
          Integer intbatch = null;
          if (puMetadata.getBatchSize() > 0) {
              intbatch = new Integer(puMetadata.getBatchSize());
          }
          batch_Size =
              (String) (externalBatchSize != null ? externalBatchSize : intbatch != null ? intbatch.toString() : null);
  
          setBatchSize(batch_Size);
      }
docs: Sets the batch size.
  
  @param persistenceUnit
  the persistence unit
  @param puProperties
  the pu properties