changes to j2me code for new error framework and PAM