class WMSLayer extends AbstractModel implements ImageProvider<TileImageKey> {

    @Override
    public Image getImage(TileImageKey key)
    {
        if (myImageProvider == null)
        {
            throw new IllegalStateException("getImage called before image provider has been set.");
        }
        return myImageProvider.getImage(key);
    }

    public  WMSLayer(Builder builder);

}