public function getIdentityClient()
 {
     if (!get_class($this->identityClient) == 'IdentityClient') {
         $this->identityClient = IdentityClient::factory(array('username' => $this->username, 'password' => $this->password, 'tenantName' => $this->tenantName, 'base_url' => $this->getEndpoint('identity', $this->region, $endpointType)));
     }
     return $this->identityClient;
 }
 /**
  * @return IdentityClient
  */
 public function getIdentityClient()
 {
     if (!$this->identityClient) {
         $this->identityClient = IdentityClient::factory(array('username' => $this->username, 'password' => $this->password, 'tenantName' => $this->tenantName, 'base_url' => $this->getEndpoint('identity', $this->region, 'admin')));
     }
     return $this->identityClient;
 }