private JsonSimple parsedFormData ( String oid ) { // Get our data from Storage Payload payload = null ; try { DigitalObject object = storage . getObject ( oid ) ; payload = getDataPayload ( object ) ; } catch ( StorageException ex ) { log . error ( "Error accessing object '{}' in storage: " , oid , ex ) ; return null ; } // Parse the JSON try { try { return FormDataParser . parse ( payload . open ( ) ) ; } catch ( IOException ex ) { log . error ( "Error parsing data '{}': " , oid , ex ) ; return null ; } finally { payload . close ( ) ; } } catch ( StorageException ex ) { log . error ( "Error accessing data '{}' in storage: " , oid , ex ) ; return null ; } }
Get the form data from storage for the indicated object and parse it into a JSON structure .