public static function newFromServiceCatalog($catalog, $authToken, $region) {
    $c = count($catalog);
    for ($i = 0; $i < $c; ++$i) {
      if ($catalog[$i]['type'] == self::SERVICE_TYPE) {
        foreach ($catalog[$i]['endpoints'] as $endpoint) {
          if (isset($endpoint['publicURL']) && $endpoint['region'] == $region) {
            $os= new ObjectStorage($authToken, $endpoint['publicURL']);

            return $os;
          }
        }
      }
    }

    return FALSE;
  }