class SimpleFaultMessageResolver implements FaultMessageResolver {

	@Override
	public void resolveFault(WebServiceMessage message) {
		if (message instanceof FaultAwareWebServiceMessage) {
			throw new WebServiceFaultException((FaultAwareWebServiceMessage) message);
		} else {
			throw new WebServiceFaultException("Message has unknown fault: " + message);
		}
	}

}