I don't think this is that bad, but I wonder if there is a way to restructure the code so that we only need to parse the statement once instead of in the isSessionParameterChange method and here.