How To Configure Extension Which Has It's Own Modules?

For the experts:

How is it possible to configure the following:

	1.  An existing Yii application has app/protected/modules

    	2. existing modules in #1 are configured inside main.php and added to modules section of the config file.

    	3.  Now I have custom changes which include multiple new modules.

    	4.   How  to segregate new code  underneath app/protected/extensions/newCode


    	5.  In order  to place new modules inside app/protected/extensions/newCode/modules directory.

    	How to configure? is it even possible?