4. Let $0<\theta<\pi$, then the maximum value of $\sin \frac{\theta}{2}(1+\cos \theta)$ is

Translate the text above into English, please keep the original text's line breaks and format, and output the translation result directly.