open static fun createRecord(name: String, address: String, itf: String, metadata: JsonObject): Record
Sugar method to creates a record for this type.
The java interface is added to the metadata in the `service.interface` key.
name - the name of the service.
address - the event bus address on which the service available
itf - the Java interface (name)
Return
the created record
open static fun createRecord(name: String, address: String, classname: String): Record
Creates a record based on the parameters.
Return
the record