final DataSiftClient datasift = new DataSiftClient(config);
String csdl = "interaction.content contains \"some string\"";
//both sync and async processing are supported by calling "sync" on any FutureDate object
//synchronously validate a CSDL
Validation validation = datasift.core().validate(csdl).sync();
if (validation.hasFailed()) {
//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();
}