If you need the set layout to be rendered from a specific module then use the module argument from the setLayout() or renderLayout() methods:
component name="general"{functionindex(event,rc,prc){// call some model for data and put into the request collectionprc.myQuery =getInstance('MyService').getData();// set the view for renderingevent.setLayout( name="admin",module="contentbox" ); }}