Balance balance = datasift.balance().sync();
//synchronously validate a CSDL
Validation validation = datasift.validate(csdl).sync();
if (!validation.isSuccessful()) {
//if true an exception may have caused the request to fail, inspect the cause if available
if (validation.failureCause() != null) { //may not be an exception
validation.failureCause().printStackTrace();
}
return;
}
System.out.println(validation);