Eric,
Sorry, I was wrong in my previous answer.
Thinking a little better in your development, perhaps because it is a process "outside" the backend, the Webdynpro is not reaching the routine systemic level.
You can do a debug this method you developed and return to us the value of cl_gui_frontend_services=>hkey_current_user ?
Best regards,
Raphael Pacheco.