setBigBazaarAdminContext();
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("ClientID", "0");
final DataSetService dss = DataSetService.getInstance();
final OBCriteria<DataSet> obc = OBDal.getInstance().createCriteria(DataSet.class);
final List<DataSet> ds = obc.list();
for (final DataSet d : ds) {
log.debug("Exporting DataSet: " + d.getName());
log.debug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
final List<DataSetTable> dts = d.getDataSetTableList();
for (final DataSetTable dt : dts) {
log.debug("Exporting DataSetTable: " + dt.getTable().getName());
final List<DataSetColumn> dcs = dt.getDataSetColumnList();
final List<BaseOBObject> bobs = dss.getExportableObjects(dt, "0", parameters);
for (final BaseOBObject bob : bobs) {
final List<Property> ps = dss.getExportableProperties(bob, dt, dcs);
final StringBuilder sb = new StringBuilder();
sb.append(bob.getIdentifier() + " has " + ps.size() + " properties to export");
// . Values: ");
// for (Property p : ps) {
// final Object value = bob.get(p.getName());