public static BlockSnapshot validateSnapshot(URI snapshotURI,UriInfo uriInfo,DbClient dbClient){
  ArgValidator.checkUri(snapshotURI);
  BlockSnapshot snapshot=dbClient.queryObject(BlockSnapshot.class,snapshotURI);
  ArgValidator.checkEntity(snapshot,snapshotURI,BlockServiceUtils.isIdEmbeddedInURL(snapshotURI,uriInfo),true);
  return snapshot;
}

public static BlockSnapshot validateSnapshot ( URI snapshotURI , UriInfo uriInfo , DbClient dbClient ) { ArgValidator . checkUri ( snapshotURI ) ; BlockSnapshot snapshot = dbClient . queryObject ( BlockSnapshot . class , snapshotURI ) ; ArgValidator . checkEntity ( snapshot , snapshotURI , BlockServiceUtils . isIdEmbeddedInURL ( snapshotURI , uriInfo ) , true ) ; return snapshot ; }
validate the blocksnapshot instance with the passed uri .
