public interface KeyAttributeInterface
This interface is used by Key serialization to come up with a string representation of the key that is of a reasonable length. By default the key uses java-serialization to convert an attribute value into bytearray. But that ends up creating a large string, which gets unmanageable when Web/HTML/JSP UIs have to display the key/use the key in URLs. The intent here is to get a shorter but meaningful String representation of this object.
Note that another requirement of this interface is that the domain class should have a public default constructor, so that the framework can call Class.newInstance() to create an instance of this domain class and set the byte array from a key into this instance using setBytes method.
void setBytes(byte bArr)