if (dsSpec != null) {
typeName = dsSpec.getType();
}
return GSON.toJson(makeDataSetRecord(name, typeName));
} else if (type == Data.STREAM) {
StreamSpecification spec = store.getStream(account, name);
return spec == null ? "" : GSON.toJson(makeStreamRecord(spec.getName(), spec));
}
return "";
} catch (OperationException e) {
LOG.warn(e.getMessage(), e);
throw new Exception("Could not retrieve data specs for " + programId.toString() + ", reason: " + e.getMessage());