throws ResourceLoadingException
{
try
{
final long version = data.getVersion(caller);
final WmfFile wmfFile = new WmfFile(data.getResourceAsStream(caller), -1, -1);
final Image image = wmfFile.replay();
return new SimpleResource (data.getKey(), image, version);
}
catch (IOException e)
{
throw new ResourceLoadingException("Failed to process WMF file", e);