How to Select or Create a Class for a Transaction