Implementation impl_jackhammer = waitForImplByName(null,
"JackHammer_singleton");
Implementation impl_worker = waitForImplByName(null, "Worker_waiting");
Implementation impl_toolmanager = waitForImplByName(null, "ToolManager");
Composite yard = (Composite) ct.createInstance(null, null);
impl_jackhammer.createInstance(null, null);
Worker worker1 = (Worker) impl_worker.createInstance(yard, null)
.getServiceObject();
apam.waitForIt(Constants.CONST_WAIT_TIME);
Instance dayinst = null;
Instance managerinst = null;
for (Instance inst : yard.getContainInsts()) {
if (inst.getImpl().equals(impl_daystate)) {
dayinst = inst;
} else if (inst.getImpl().equals(impl_toolmanager)) {
managerinst = inst;
}