use CorrelationsObjectFactory instead of python code