FYI, I added a new class called ContextTupleTypes that takes an attribute name and returns whether it is a String, Integer, Double, or Date. It just has a static lookup map.
View entire thread