private static JsonValue toConfigExportJson(RecordProperties recordProperties){
  JsonObject configExportProperties=JsonValueBuilder.jsonValue();
  configExportProperties.put(RecordConstants.CONFIG_EXPORT_ENABLE_LABEL,recordProperties.configExportEnable);
  if (recordProperties.configExportEnable) {
    if (recordProperties.configExportSharePassword) {
      configExportProperties.put(RecordConstants.CONFIG_EXPORT_PASSWORD_LABEL,recordProperties.configExportPassword);
    }
 else {
      configExportProperties.put(RecordConstants.CONFIG_EXPORT_PASSWORD_LABEL,NOT_SHARED_PASSWORD);
    }
    configExportProperties.put(RecordConstants.CONFIG_EXPORT_SHARE_PASSWORD_LABEL,recordProperties.configExportSharePassword);
  }
  return configExportProperties.build();
}

private static JsonValue toConfigExportJson ( RecordProperties recordProperties ) { JsonObject configExportProperties = JsonValueBuilder . jsonValue ( ) ; configExportProperties . put ( RecordConstants . CONFIG_EXPORT_ENABLE_LABEL , recordProperties . configExportEnable ) ; if ( recordProperties . configExportEnable ) { if ( recordProperties . configExportSharePassword ) { configExportProperties . put ( RecordConstants . CONFIG_EXPORT_PASSWORD_LABEL , recordProperties . configExportPassword ) ; } else { configExportProperties . put ( RecordConstants . CONFIG_EXPORT_PASSWORD_LABEL , NOT_SHARED_PASSWORD ) ; } configExportProperties . put ( RecordConstants . CONFIG_EXPORT_SHARE_PASSWORD_LABEL , recordProperties . configExportSharePassword ) ; } return configExportProperties . build ( ) ; }
export the config export json block
