You can begin to solve this problem for yourself by trying to understand some of the major flavor components, their structures, and compare them the structure of caffeine. Briefly, caffeine is an alkaloid -- it has distinct chemical properties caused by its nitrogen containing groups.
I hate to send you an impossible task however, so I have to warn you, you should re-review the literature. Decaffeination of green coffee beans by solvents definitely depletes them of other flavor compounds. The industry extracts green coffee beans, removes the caffeine from the solvent, then re-uses the flavor-enhanced, caffeine depleted solvent, to remove caffeine from the next batch.