try {
implClass = sdoType.getImplClass();
if (implClass != null) {
// initialization of the properties Map Implementation will be done in the default constructor call below
// testcase is in org.apache.tuscany.sdo.test
SDODataObject theDataObject = (SDODataObject)implClass.newInstance();
theDataObject._setType(sdoType);
theDataObject._setHelperContext(getHelperContext());
return theDataObject;
}
} catch (InstantiationException e) {
throw new IllegalArgumentException(SDOException.errorCreatingDataObjectForClass(e, (sdoType).getInstanceClassName(), sdoType.getURI(), sdoType.getName()));
} catch (IllegalAccessException e) {
throw new IllegalArgumentException(SDOException.errorCreatingDataObjectForClass(e, (sdoType).getInstanceClassName(), sdoType.getURI(), sdoType.getName()));
}
SDODataObject dataObject = new SDODataObject();
dataObject._setType(sdoType);
dataObject._setHelperContext(getHelperContext());
return dataObject;
}