class TradeValidator implements Validator {

	@Override
	public boolean supports(Class<?> clazz) {
		return clazz.equals(Trade.class);
	}

	@Override
	public void validate(Object target, Errors errors) {<FILL_FUNCTION_BODY>}

}

		Trade trade = (Trade) target;

		if (trade.getIsin().length() >= 13) {
			errors.rejectValue("isin", "isin_length");
		}
	
<no_super_class>