Method getPathInfo() does not contains context path which causes index out of bound error if there is any context path.
Merge pull request #13 from lvotypko/out-of-bound-error

Index out of bound error