code: private void isReferenceToLoggedInUser(Root root) throws WIMApplicationException {
          // Get unique name
          if (root.getEntities().size() == 0)
              return;
  
          Entity entity = root.getEntities().get(0);
          IdentifierType identifier = entity.getIdentifier();
  
          if (identifier == null)
              return;
  
          String uName = identifier.getUniqueName();
  
          // Get unique name from subject
          String loggedInUniqueName = this.getCallerUniqueName();
  
          // Check subject uniquename is same as unique name of user being deleted
          // throw exception that user cannot be deleted
          if (uName != null && uName.equalsIgnoreCase(loggedInUniqueName)) {
              throw new WIMApplicationException(WIMMessageKey.CANNOT_DELETE_LOGGED_IN_USER, Tr.formatMessage(tc,
                                                                                                             WIMMessageKey.CANNOT_DELETE_LOGGED_IN_USER,
                                                                                                             WIMMessageHelper.generateMsgParms(uName)));
          }
          return;
      }
docs: Return if the uniqueName in delete api's DO is same as that of logged-in user
  Defect# 37864
  
  @param Dataobject passed to delete API.
  @return void
  @throws WIMApplicationException