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