Big Refactoring to manage CM Resources for RCP and RAP both.