String filePath = _cacheStoreRoot + Integer.toHexString( url.hashCode() )
+ Integer.toHexString( data.length );
long storeKey = generateCacheItemStoreKey( filePath );
// Open persistent store. Use key to access store.
PersistentObject persistentObject = PersistentStore.getPersistentObject( storeKey );
// Save to Pstore.
synchronized( persistentObject ) {
try {
// Get the code signing key associated with this BlackBerry WebWorks Application.
CodeSigningKey codeSigningKey = CodeSigningKey.get( this );
persistentObject.setContents( new ControlledAccess( pDataStore, codeSigningKey ) );
persistentObject.commit();
} catch ( ControlledAccessException cae ) {
throw new IOException();
} catch ( NonPersistableObjectException npoe ) {
throw new IOException();
} catch ( PersistentContentException pce ) {