class DeduplicationController {

    @RequestMapping( method = { RequestMethod.PUT, RequestMethod.POST }, value = "/{id}/invalidation" )
    public void markPotentialDuplicateInvalid(
        @PathVariable String id
    )
        throws WebMessageException
    {
        PotentialDuplicate potentialDuplicate = deduplicationService.getPotentialDuplicateByUid( id );

        if ( potentialDuplicate == null )
        {
            throw new WebMessageException(
                notFound( "No potentialDuplicate records found with id '" + id + "'." ) );
        }

        deduplicationService.markPotentialDuplicateInvalid( potentialDuplicate );
    }

    public  DeduplicationController( DeduplicationService deduplicationService,
        TrackedEntityInstanceService trackedEntityInstanceService,
        TrackerAccessManager trackerAccessManager, CurrentUserService currentUserService,
        FieldFilterService fieldFilterService,
        ContextService contextService );

}