if (r instanceof DataResource) {
// instantiate and load the resource object if there is one
if (implClass != null) {
try {
SharedResourceObject sro = (SharedResourceObject) implClass.newInstance();
sro.load((DataResource) r);
r = sro;
} catch (InstantiationException e) {
throw new ResourceInitializationException(
ResourceInitializationException.COULD_NOT_INSTANTIATE, new Object[] {
implClass.getName(), aResourceDescription.getSourceUrlString() }, e);