code: private void setRefreshIndexes(Properties puProps, Map<String, Object> externalProperties)
      {
          Object refreshIndexes = null;
  
          /*
           * Check from properties set while creating emf
           * 
           */
          if (externalProperties.get(ESConstants.KUNDERA_ES_REFRESH_INDEXES) != null)
          {
  
              refreshIndexes = externalProperties.get(ESConstants.KUNDERA_ES_REFRESH_INDEXES);
  
          }
  
          /*
           * Check from PU Properties
           * 
           */
          if (refreshIndexes == null && puProps.get(ESConstants.KUNDERA_ES_REFRESH_INDEXES) != null)
          {
  
              refreshIndexes = puProps.get(ESConstants.KUNDERA_ES_REFRESH_INDEXES);
  
          }
  
          if (refreshIndexes != null)
          {
              if (refreshIndexes instanceof Boolean)
              {
                  this.setRereshIndexes = (boolean) refreshIndexes;
              }
              else
              {
                  this.setRereshIndexes = Boolean.parseBoolean((String) refreshIndexes);
              }
          }
      }
docs: Sets the refresh indexes.
  
  @param puProps
  the pu props
  @param externalProperties
  the external properties