private function getProfilesHtml(&$profiles) {
    $html = '<h3>Profiles Collections</h3>' . 
            $this->getCollectionInfoHtml($profiles);

    $items = $profiles->getItems();

    if (count($items) == 0) {
      $html .= '<p>No Profiles Found</p>';

    } else {
      foreach ($items as &$profile) {
        $html .= <<<HTML
<hr>
<pre>
Kind                     = {$profile->getKind()}
Account ID               = {$profile->getAccountId()}
Web Property ID          = {$profile->getWebPropertyId()}
Internal Web Property ID = {$profile->getInternalWebPropertyId()}
Profile ID               = {$profile->getId()}
Profile Name             = {$profile->getName()}

Currency                 = {$profile->getCurrency()}
Timezone                 = {$profile->getTimezone()}
Default Page             = {$profile->getDefaultPage()}

Exclude Query Parameters = {$profile->getExcludeQueryParameters()}
Site Search Category Parameters = {$profile->getSiteSearchCategoryParameters()}
Site Search Query Parameters = {$profile->getSiteSearchQueryParameters()}

Created   = {$profile->getCreated()}
Updated   = {$profile->getUpdated()}

Self Link = {$profile->getSelfLink()}
Parent Link
Parent Link href = {$profile->getParentLink()->getHref()}
Parent link type = {$profile->getParentLink()->getType()}
Child Link
Child link href  = {$profile->getChildLink()->getHref()}
Child link type  = {$profile->getChildLink()->getType()}
</pre>
HTML;
      }
    }
    return $html;
  }