code: protected AddressArray createAddressArray(File homeDir,
                                                int batchSize,
                                                int numSyncBatches,
                                                boolean indexesCached) throws Exception {
          AddressArrayFactory factory = new AddressArrayFactory(indexesCached);
          AddressArray addrArray = factory.createDynamicAddressArray(homeDir, batchSize, numSyncBatches);
          return addrArray;
      }
docs: Creates an address array file under the specified home directory.
  
  @param homeDir        - the home directory
  @param batchSize      - the update batch size
  @param numSyncBatches - the number of batches need to sync address array file
  @param indexesCached  - whether the indexes.dat is cached in memory.
  @return the created address array
  @throws Exception