public Object getImage(String key)
{
Object result = images.get(key);
if (result == null)
{
ResourceLocator pluginResourceLocator = getPrimaryResourceLocator();
if (pluginResourceLocator == null)
{
try
{
result = doGetImage(key);
}
catch (MalformedURLException exception)
{
throw new WrappedException(exception);
}
catch (IOException exception)
{
result = delegatedGetImage(key);
}
}
else
{
try
{
result = pluginResourceLocator.getImage(key);
}
catch (MissingResourceException exception)
{
result = delegatedGetImage(key);
}