TopologyValidationError validationError = validator.getValidationError();
String validationErrorMessage = validationError.getMessage();
Coordinate coordinate = validationError.getCoordinate();
String errorMessage = "Topology validation error at or near point "
+ coordinate + ": " + validationErrorMessage;
throw new DataSourceException("Invalid geometry passed for " + attName
+ "\n Geomerty: " + geom + "\n" + errorMessage);
}
ArcSDEGeometryBuilder geometryBuilder;
geometryBuilder = ArcSDEGeometryBuilder.builderFor(geom.getClass());
SeShape shape = geometryBuilder.constructShape(geom, coordRef);