public function loadRegistration(&$registration)
	{
		if (!is_object($registration))
		{
			return false;
		}

		$keys = array('email', 'name', 'orgtype', 'countryresident', 'countryorigin', 'disability', 'hispanic', 'race', 'phone', 'reason', 'edulevel', 'role', 'surname', 'givenName', 'middleName', 'orcid');

		foreach ($keys as $key)
		{
			if ($registration->get($key) !== null)
			{
				$this->set($key, $registration->get($key));
			}
		}

		if ($registration->get('login') !== null)
		{
			$this->set('username', $registration->get('login'));
		}

		if ($registration->get('password') !== null)
		{
			$this->set('password', $registration->get('password'));
		}

		if ($registration->get('org') !== null || $registration->get('orgtext') !== null)
		{
			$this->set('organization', $registration->get('org'));

			if ($registration->get('orgtext'))
			{
				$this->set('organization', $registration->get('orgtext'));
			}
		}

		if ($registration->get('sex') !== null)
		{
			$this->set('gender', $registration->get('sex'));
		}

		if ($registration->get('nativetribe') !== null)
		{
			$this->set('nativeTribe', $registration->get('nativetribe'));
		}

		if ($registration->get('web') !== null)
		{
			$this->set('url', $registration->get('web'));
		}

		if ($registration->get('mailPreferenceOption') !== null)
		{
			$this->set('mailPreferenceOption', $registration->get('mailPreferenceOption') ? $registration->get('mailPreferenceOption') : '-1');
		}

		if ($registration->get('usageAgreement') !== null)
		{
			$this->set('usageAgreement', $registration->get('usageAgreement') ? true : false);
		}

		return true;
	}