class TileSetEnvoy extends AbstractEnvoy implements DataRegistryDataProvider {

    @Override
    public void open()
    {
        try
        {
            query(new DataModelCategory(null, TileSet.class.getName(), null), New.collection(), New.list(), New.list(), -1,
                    New.collection(), new CacheDepositReceiver()
                    {
                        @Override
                        public <T> long[] receive(CacheDeposit<T> deposit)
                        {
                            myValidatorSupport.setValidationResult(ValidationStatus.VALID, null);
                            return getDataRegistry().addModels(deposit);
                        }
                    });
        }
        catch (InterruptedException | QueryException e)
        {
            myValidatorSupport.setValidationResult(ValidationStatus.ERROR, e.getMessage());
            LOGGER.error(e, e);
        }
    }

    public  TileSetEnvoy(Toolbox toolbox, DefaultValidatorSupport validatorSupport, String serverUrl);

}