Don't you have a hard time trying to follow the code formatted that way? I do. Please read this thread:
http://www.blackberryforums.com/deve...rum-posts.html
Then have a look at the Application Developers' Guide sections on Persistent Storage:
Livelink - Redirection