How to set the label of a representationRule ?

Discussion created by gbravo on Nov 25, 2012
I am working in java, I calculated a map and want to build its legend.
I´ve already build the representation rules and the representation class and store them in the geodatabase.
But I cannot set the name for the representation rule in order to view it correctly in the TOC bean: I got the default names Rule_1, Rule_2, ...

How can I set the name or rename it?
CalculateRepresentationRule class would do that? How?

In arcMap that is easily done by clicking in the Representation rule's name and editing it.

Thanks a lot!