HrRecord repository = getEditor().getRepository();
ValidatorFactory validatorFactory = ValidatorFactory.getInstance();
IValidator validator = validatorFactory.getValidator(repository);
IConnectionChecker destinationChecker = validator.listConnectionCheckers().get("destination");
if (destinationChecker!=null && destinationChecker.checkConnection(new MessageCollectorAdaptor(extractMessageBroker()))) {
extractMessageBroker().addSuccessMessage("catalog.harvest.manage.test.success");
}
} catch (Throwable t) {
handleException(t);