beforeContainerCompile method added for setting and interconnecting services