ODOMElement parent = (ODOMElement) result[0];
// finally move the selected device to the new location
DeviceRepositoryAccessorManager dram =
context.getDeviceRepositoryAccessorManager();
try {
dram.moveDevice(getDeviceName(selected),
getDeviceName(parent));
} catch (RepositoryException e) {
EclipseCommonPlugin.handleError(ABPlugin.getDefault(),
e);
throw new UndeclaredThrowableException(e);