Use log4j in SetLegacyStatus
Return RestClientException in RestClientTarget