* @throws Exception if a problem occurs when creating the service
*/
private DataService createDataService(Properties props) throws Exception {
DataService dataService =
new DataServiceImpl(props, systemRegistry, txnProxy);
ComponentRegistry services =
new SingletonComponentRegistry(dataService);
ComponentRegistry managers =
new SingletonComponentRegistry(
new ProfileDataManager(dataService));
Object newKernelContext = kernelContextConstructor.newInstance(
"TestWatchdogServiceImpl", services, managers);
contextResolverSetTaskState.invoke(null, newKernelContext, taskOwner);