Added code to re-do recording rules because of java 6->7.