Openfire not allowing to create Group with same name

Openfire not allowing me to create Group with same name. I need to create group with same name (members of the group could be different though). Since the Group Creation API allowing me to create Group with the name. Is there any way to create Group by using Name & ID where ID would be the unique value?

So that I can use the ID to identify the group and use same name for multiple groups.