class AerialImageProvider implements ModelProvider {

    @Override
    public PlatformMetadata getModel(DataTypeInfo dataType, DataTypeInfo videoLayer, long time, PlatformMetadata previousModel)
    {
        PlatformMetadata metadata = previousModel;

        if (videoLayer != null && metadata != null)
        {
            TimeSpan timeSpan = TimeSpan.get(time, Milliseconds.ONE);
            try
            {
                byte[] bytes = myQuerier.queryImage(videoLayer.getTypeKey(), timeSpan);
                if (bytes != null)
                {
                    metadata = new PlatformMetadataAndImage(metadata, ByteBuffer.wrap(bytes));
                }
            }
            catch (QueryException e)
            {
                LOGGER.error(e, e);
            }
        }

        return metadata;
    }

    public  AerialImageProvider(OSHImageQuerier querier);

}