Updated the getGetParam and getPostParam methods