replaced generic behavior of containsProcess function with real check