Modified WCSSourceHelper and added flushing for resourcepool cache