code: public void setLockDuration(Duration lockDuration)
      {
          this.lockDuration = lockDuration;
          if (this.lockDuration.compareTo(ManagementClientConstants.MAX_DURATION) > 0) {
              this.lockDuration = ManagementClientConstants.MAX_DURATION;
          }
      }
docs: Sets The amount of time that the message is locked by a given receiver
  so that no other receiver receives the same message.
  @param lockDuration - The duration of a peek lock. Max value is 5 minutes.