These methods shouldn't be public.
make sure the object has a loadByShortname before using it
comment cleanup
rename flushObjectOnSave() to addObjectToFlushOnSave()

It was confusingly close to flushObjectsOnSave() - the method that actually flushes all the objects