public function createUser($user_name, $password, Group $group, Role $global_role)
 {
     if (trim($user_name) == "") {
         throw new e\CreationErrorException(S_SPAN . c\M::EMPTY_USER_NAME . E_SPAN);
     }
     if (trim($password) == "") {
         throw new e\CreationErrorException(S_SPAN . c\M::EMPTY_PASSWORD . E_SPAN);
     }
     $asset = AssetTemplate::getUser();
     $asset->user->username = $user_name;
     $asset->user->password = $password;
     $asset->user->groups = $group->getId();
     $asset->user->role = $global_role->getName();
     if (self::DEBUG && self::DUMP) {
         u\DebugUtility::dump($asset);
     }
     return $this->createAsset($asset, User::TYPE, $user_name);
 }