change RedirectException to RedirectMessageException in resumeUri.
refectoring parameter name.
add utility methods