*/
public void onMessage(MessageEvent event) {
JavaScriptObject record = JSON.parse(event.getDataAsString());
JsonSchemaResults results = validator.validate(record);
if (!results.isValid()) {
postMessage(JSON.stringify(createMessage(record, results.formatResultsText(event.getDataAsString()))));
}
}
@Override
public void onWorkerLoad() {