};
LOGGER.error("device-not-found", params);
String message =
EXCEPTION_LOCALIZER.
format("device-not-found", params);
throw new UndeclaredThrowableException(new
RepositoryException(message));
} else {
DeviceODOMElement parent = (DeviceODOMElement)
deviceIDElement.getParent();
if (parent == null) {
LOGGER.error("device-no-parent", deviceName);
String message =
EXCEPTION_LOCALIZER.
format("device-no-parent",
deviceName);
throw new UndeclaredThrowableException(new
RepositoryException(message));
} else {
parent.submitRestorableName(deviceName);
}
}