if (baseKey != null)
{
try
{
final ResourceKey resourceKey = manager.deriveKey(baseKey, propsName);
final ResourceData resource = manager.load(resourceKey);
final InputStream instream = resource.getResourceAsStream(manager);
try
{
final LibLoaderResourceBundle resourceBundle = new LibLoaderResourceBundle(instream);
successfulLoads.put(propsName, resourceBundle);
return resourceBundle;
}
finally
{
instream.close();
}
}
catch (Exception e)
{
// silently ignore ..
}
}
try
{
// try to load the bundle via classpath ...
final ResourceKey resourceKey = manager.createKey("res://" + propsName); // NON-NLS
final ResourceData resource = manager.load(resourceKey);
final InputStream instream = resource.getResourceAsStream(manager);
try
{
final LibLoaderResourceBundle resourceBundle = new LibLoaderResourceBundle(instream);
successfulLoads.put(propsName, resourceBundle);
return resourceBundle;