Writing a J2ME CLDC for a new mobile embedded device