question: private Object createInner ( SimpleObject post , RequestContext context ) throws ResponseException { try { String xml = completeXform ( convertUuidsToIds ( post ) ) ; File file = File . createTempFile ( "projectbuendia" , null ) ; processor . processXForm ( xml , file . getAbsolutePath ( ) , true , context . getRequest ( ) ) ; } catch ( IOException e ) { throw new GenericRestException ( "Error storing xform data" , e ) ; } catch ( ResponseException e ) { throw e ; } catch ( Exception e ) { throw new ConversionException ( "Error processing xform data" , e ) ; } Encounter encounter = guessEncounterFromXformSubmission ( post ) ; if ( encounter == null ) { return post ; } SimpleObject returnJson = new SimpleObject ( ) ; EncounterResource . populateJsonProperties ( encounter , returnJson ) ; return returnJson ; }
target:  Accepts a submitted form instance. 