static synchronized private void checkClientExceptionMapper()
{
if (ResteasyProviderFactory.getInstance().getClientExceptionMapper(Exception.class) == null)
{
Type exceptionType = Types.getActualTypeArgumentsOfAnInterface(ApacheHttpClient4ExceptionMapper.class, ClientExceptionMapper.class)[0];
ResteasyProviderFactory.getInstance().addClientExceptionMapper(new ApacheHttpClient4ExceptionMapper(), exceptionType);
}
}