private void CreateLinksForReportInstances(Guid workFlowGuid,
                                                   LinkedResourceBaseDto wrapper, string orderBy, string qualifiedName, DateTime searchFrom, DateTime searchTo, int pageNumber, int pageSize, bool hasNext, bool hasPrevious)
        {
            wrapper.Links.Add(
                new LinkDto(
                    _linkGeneratorService.CreateReportInstancesResourceUri(workFlowGuid, ResourceUriType.Current, orderBy, qualifiedName, searchFrom, searchTo, pageNumber, pageSize),
                    "self", "GET"));

            if (hasNext)
            {
                wrapper.Links.Add(
                    new LinkDto(
                        _linkGeneratorService.CreateReportInstancesResourceUri(workFlowGuid, ResourceUriType.NextPage, orderBy, qualifiedName, searchFrom, searchTo, pageNumber, pageSize),
                        "nextPage", "GET"));
            }

            if (hasPrevious)
            {
                wrapper.Links.Add(
                    new LinkDto(
                        _linkGeneratorService.CreateReportInstancesResourceUri(workFlowGuid, ResourceUriType.PreviousPage, orderBy, qualifiedName, searchFrom, searchTo, pageNumber, pageSize),
                        "previousPage", "GET"));
            }
        }