*/
public class CRUDClient {
public static void main(String[] args) throws Exception {
SCADomain scaDomain = SCADomain.newInstance("crud.composite");
CRUD crudService = scaDomain.getService(CRUD.class, "CRUDServiceComponent");
String id = crudService.create("ABC");
Object result = crudService.retrieve(id);
System.out.println("Result from create: " + result);
crudService.update(id, "EFG");
result = crudService.retrieve(id);
System.out.println("Result from update: " + result);
crudService.delete(id);
result = crudService.retrieve(id);
if (result == null) {
System.out.println("Result from delete: null");
} else {
System.out.println("Result from delete: should be null but was " + result);
}
scaDomain.close();
}