code: public static ResourceList<Domain> list(final BandwidthClient client, final int page, final int size) {
          final String resourceUri = client.getUserResourceUri(BandwidthConstants.DOMAINS_URI_PATH);
          final ResourceList<Domain> domains = new ResourceList<Domain>(resourceUri, Domain.class);
          domains.setClient(client);
          domains.initialize();
          return domains;
      }
docs: Factory method to list the Domains.
  @param client The Bandwidth client
  @param page the starting page.
  @param size the page size.
  @return the Domain list.