169170171172173174175176177178179
try { JSONObject json = new JSONObject( view ); viewObj.fromJSON( json ); viewObj.setUser( user ); pe.store( viewObj ); } catch ( JSONException e ) { logger.error( e ); return RESULT_ERROR; } return RESULT_OK;