helper = null;
if (!resource.getErrors().isEmpty()) {
Exception error = (Exception) resource.getErrors().get(0);
if (error instanceof XMIException) {
XMIException exception = (XMIException) error;
if (exception.getWrappedException() != null) {
throw new Resource.IOWrappedException(exception.getWrappedException());
}
}
throw new Resource.IOWrappedException(error);
}
}