throw new DashboardStructureException(
Messages.getString( "DashboardStructure.ERROR_006_SAVE_FILE_ADD_FAIL_EXCEPTION" ) );
}
// 3. CDA
CdaRenderer cdaRenderer = new CdaRenderer( cdfdeJsText );
String cdaFileName = cdeFilePath.replace( ".cdfde", ".cda" );
// Any data sources?
if ( cdaRenderer.isEmpty() ) {
access.deleteFile( cdaFileName );
} else {
// throws Exception ????
String cdaText = cdaRenderer.render();
if ( !access.saveFile( cdaFileName, new ByteArrayInputStream( safeGetEncodedBytes( cdaText ) ) ) ) {
throw new DashboardStructureException(
Messages.getString( "DashboardStructure.ERROR_006_SAVE_FILE_ADD_FAIL_EXCEPTION" ) );
}
}