If I write the new Envinroment(); command in the catch block, the id of the envinroment object may have been initially assigned.

Comment From: harawata

Sorry, I couldn't understand. Please attach a test case that is fixed/affected by this change.

Comment From: erayerdem

better in terms of code readability @harawata

Comment From: erayerdem

@harawata If datasource is null, we will take an unnecessary action