Assert.assertNotNull("M implementation not found", implM);
Instance instM = implM.createInstance(null,null);
Assert.assertNotNull("M instance not created", instM);
MainApamSpec serviceObject = (MainApamSpec) instM.getServiceObject();
Assert.assertNotNull("MainApam service object created successfully", serviceObject);
return serviceObject;
}