Add decorate method to domain classes