class BinaryExceptionClassifierRetryPolicy implements RetryPolicy {

	private final BinaryExceptionClassifier exceptionClassifier;

	public BinaryExceptionClassifierRetryPolicy(BinaryExceptionClassifier exceptionClassifier) {
		this.exceptionClassifier = exceptionClassifier;
	}

	public BinaryExceptionClassifier getExceptionClassifier() {
		return exceptionClassifier;
	}

	@Override
	public boolean canRetry(RetryContext context) {<FILL_FUNCTION_BODY>}

	@Override
	public void close(RetryContext status) {
	}

	@Override
	public void registerThrowable(RetryContext context, Throwable throwable) {
		RetryContextSupport simpleContext = ((RetryContextSupport) context);
		simpleContext.registerThrowable(throwable);
	}

	@Override
	public RetryContext open(RetryContext parent) {
		return new RetryContextSupport(parent);
	}

}

		Throwable t = context.getLastThrowable();
		return t == null || exceptionClassifier.classify(t);
	
<no_super_class>