Adding an abstract generateQuery method to the ObjectProcessor
base-class - This might break stuff.