SOS-2326 use LiferayPortletURL
SOS-2325 instance.namespace is null at this moment, move the closePopup() call to jsp since it is called only once.
SOS-2325 SF