Correct setId placement

The setId had been implemented once on the protocol instance and once
as a (unused) static method.