If sourceSteps == null, this will throw an NPE. I'm sure this is unlikely given the control flow but we should still handle this in code and secure it using a unit test.