/**
* @param args
*/
public static void main(String[] args) {
BiochemicalCircle biochemicalCircl = new BiochemicalCircleImpl();
Laboratory lab2 = biochemicalCircl.getLaboratory("Lab2"); //This invocation without use SCA works ok.
NodeFactory factory = NodeFactory.newInstance();
String contribution = ContributionLocationHelper.getContributionLocation(BioTestCase.class);
Node node =
factory.createNode("resources/clinicalLaboratory.composite", new Contribution("clinical", contribution))
.start();
BiochemicalCircle biochemicalCircle = node.getService(BiochemicalCircle.class, "BiochemicalCircleComponent");
Laboratory lab = EntityFactory.INSTANCE.createLaboratory();
lab.setName("lab2");
biochemicalCircle.setLaboratory(lab); // this invocation works ok too
lab = biochemicalCircle.getLaboratory("Lab2"); // here I have an exception posted below.
//here I wait a moment before close scaDomain
System.out.println(lab.getName());
node.stop();
}