Do not leave commented out code. Is it not possible to change ModalUtils.hideModal so it is useable?