Re-added code

As per SharkHunter's comment from https://github.com/UniversalMediaServer/UniversalMediaServer/commit/2e86e5774d67ee05bd6bf727ce358e3ddfc53710#commitcomment-3216033