restClientClass.getAnnotation(RespStatusMappings.class));
addStatusExceptionMapppings(method, statusExceptionMappings,
method.getAnnotation(RespStatusMappings.class));</BUG>
return Collections.unmodifiableMap(statusExceptionMappings);
<BUG>}
private void addStatusExceptionMapppings(
Method method, Map<Integer, Class<? extends Throwable>> statusExceptionMappings,
RespStatusMappings respStatusMappings) {</BUG>
if (respStatusMappings == null) return;
for (RespStatusMapping respStatusMapping : respStatusMappings.value()) {

val mappings = createStatusExceptionMappings(method, restClientClass);
val fieldName = method.getName() + MethodGenerator.StatusExceptionMappings;
Obj.setField(restClientImplClass, object, fieldName, mappings);
}
}
private Map<Integer, Class<? extends Throwable>> createStatusExceptionMappings(Method method, Class<?> restClientClass) {
Map<Integer, Class<? extends Throwable>> statusExceptionMappings = Maps.newHashMap();
addStatusExceptionMapppings(method, statusExceptionMappings, restClientClass.getAnnotation(RespStatusMappings.class));
addStatusExceptionMapppings(method, statusExceptionMappings, method.getAnnotation(RespStatusMappings.class));
return Collections.unmodifiableMap(statusExceptionMappings);
}
private void addStatusExceptionMapppings(Method method, Map<Integer, Class<? extends Throwable>> statusExceptionMappings, RespStatusMappings respStatusMappings) {
if (respStatusMappings == null) return;
for (RespStatusMapping respStatusMapping : respStatusMappings.value()) {
