[BZ-1036556][BZ-1035780][BZ-1035775] fix spring applicationContext URL retrival for EAP 6.1.1
(cherry picked from commit fccbb92460a40c03fdc1697cb49b3b7c3d534982)