https://basescripts.com/lock-service-example
Lock Service Example