.withErrors(response.getEntity(new GenericType<List<ValidationErrorXO>>()
{
}));
}
if (isError(response)) {
final ErrorXO error = response.getEntity(ErrorXO.class);
throw nexusClient.convert(
new ContextAwareUniformInterfaceException(response)
{
@Override
public String getMessage(final int status) {
return error.getMessage() + " (" + error.getId() + ")";
}
}
);
}
if (!Response.Status.Family.SUCCESSFUL.equals(response.getClientResponseStatus().getFamily())) {