Creating group of Contacts in Notes using java

Hi,

Is there a way to create a group of contacts using java. Can someone give an example of doing that?

Thanks in advance,

Madhava