How to implement this logic and extend the method "formattedDataSources" if in "defaultDataSources" have been found a match by "sourceType" p