add a protocol RestGoateeSerialization for developers to provide custom behavior