moved function getContextPath to ProjectUtils