final ContactList contactList =
(ContactList) PIM.getInstance().openPIMList(
PIM.CONTACT_LIST, PIM.WRITE_ONLY);
final Contact contact = contactList.createContact();
final String[] name =
new String[contactList.stringArraySize(Contact.NAME)];
/*
* This section adds values to selective PIM items. Additional
* items can be added for Contact or BlackBerryContact fields.
* Please refer to javadocs.