if (getOptions() != null) {
opts = Configurations.parseProperties(getOptions());
}
String cacheName = opts.getProperty("name",null);
OpenJPAConfiguration conf = (OpenJPAConfiguration)getProvider().getConfiguration();
DataCacheManager dcm = conf.getDataCacheManagerInstance();
DataCache dc = null;
if (cacheName == null || cacheName.trim().length() == 0) {
dc = dcm.getSystemDataCache();
} else {
dc = dcm.getDataCache(cacheName);
}
if (dc == null) {
throw new UserException(_loc.get("data-cache-not-found"));
}
setDataCache(dc);
setDataCacheManager(dcm);
setConfigId(conf.getId());
setContextRef(Integer.toString(System.identityHashCode(getContext())));
}