text: from pyopenproject.api_connection.exceptions.request_exception import RequestError
  from pyopenproject.api_connection.requests.delete_request import DeleteRequest
  from pyopenproject.business.exception.business_error import BusinessError
  from pyopenproject.business.services.command.user.user_command import UserCommand
  from pyopenproject.model import user as u
  
  
  class Unlock(UserCommand):
  
      def __init__(self, connection, user):
          super().__init__(connection)
          self.user = user
  
      def execute(self):
          try:
              json_obj = DeleteRequest(self.connection, f"{self.CONTEXT}/{self.user.id}/lock").execute()
              return u.User(json_obj)
          except RequestError as re:
              raise BusinessError(f"Error unlocking user with id: {self.user.id}") from re
  