(1) In the case governed by section 574, the lessee may demand that the lease be continued as long as is appropriate having regard to all circumstances. If the lessor cannot reasonably be required to continue the lease under the previously applicable contract terms, then the lessee may only demand that it be continued with an appropriate modification of the terms.
(2) If no agreement is reached, then the continuation of the lease, its duration and the terms under which it is continued are determined by judicial decision. If it is uncertain when the circumstances can be expected to cease on the basis of which termination of the lease would be a hardship, then it may be specified that the lease is to be continued for an indefinite period of time.
(3) A deviating agreement to the disadvantage of the lessee is ineffective.