class DebugSectionUtils {

    static DataSource unwrapSourceFromCacheDataSource(DataSource dataSource) {
        if (dataSource instanceof CacheDataSource) {
            try {
                Field source = CacheDataSource.class.getDeclaredField("source");
                source.setAccessible(true);
                return (DataSource) source.get(dataSource);
            } catch (NoSuchFieldException | IllegalAccessException e) {
                ConsoleLogger.logException("Could not get source of CacheDataSource:", e);
                return null;
            }
        }
        return dataSource;
    }

    private  DebugSectionUtils();

}