docs: function (callback) {
              if (_.isFunction(rep.entity.toHal)) {
                  rep.entity.toHal(rep, wrap(callback));
              } else {
                  callback(null, rep);
              }
          }