Will this work ok when the class itself is passed in place of the constant name?