Code example for ObjectRetrievalFailureException

0
        try { 
            m_storageStrategy = (StorageStrategy) cinst.newInstance(); 
        } catch (InstantiationException e) { 
            throw new ObjectRetrievalFailureException(StorageStrategy.class, className, "Could not instantiate", e); 
        } catch (IllegalAccessException e) { 
            throw new ObjectRetrievalFailureException(StorageStrategy.class, className, "Could not instantiate", e); 
        } 
        m_storageStrategy.setResourceTypeName(m_resourceType); 
    } 
 
    private void instantiatePersistenceSelector(String className) { 
        Class<?> cinst; 
        try { 
            cinst = Class.forName(className); 
        } catch (ClassNotFoundException e) { 
            throw new ObjectRetrievalFailureException(PersistenceSelectorStrategy.class, className, "Could not load class", e); 
        } 
        try { 
            m_persistenceSelectorStrategy = (PersistenceSelectorStrategy) cinst.newInstance(); 
        } catch (InstantiationException e) {