Raining down technology
Use the wrapper class CommandWrapper and create a list, assigned to the commandsToBeRegistered variable of an instance of Receiver.
CommandWrapper
commandsToBeRegistered