private void instantiateStorageStrategy(String className) { Class<?> cinst; try { cinst = Class.forName(className); } catch (ClassNotFoundException e) { throw new ObjectRetrievalFailureException(StorageStrategy.class, className, "Could not load class", e); } 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_name); if (getAgent() != null) m_storageStrategy.setStorageStrategyService(getAgent()); }