class XYZUrlBuilder implements TileUrlBuilder {

    @Override
    public String buildUrl(DataModelCategory category, ZYXImageKey key)
    {
        String layerUrl = category.getCategory();
        String parentUrl = layerUrl.substring(0, layerUrl.lastIndexOf('/'));
        String urlString = StringUtilities.concat(parentUrl, "/tile/", Integer.valueOf(key.getZ()), "/",
                Integer.valueOf(key.getY()), "/", Integer.valueOf(key.getX()));
        return urlString;
    }

}