Changed argument of getListOfParameterNames to be a ParameterList