String json = callSave( (IFrameElement) ((com.google.gwt.dom.client.Element) frame.getElement()) );
if (json == null || "".equals(json.trim())) {
Window.alert("Warning: form is empty from guvnor perspective.");
}
if ( asset.getContent() == null ) {
asset.setContent( new FormContentModel() );
}
((FormContentModel) asset.getContent()).setJson( json );
} catch ( Exception e ) {
GWT.log( "JSNI method callSave() threw an exception:",
e );