try {
database = new Database();
deviceNameList = database.get_device_exported_for_class("HdbExtractor");
} catch (DevFailed e) {
throw new SourceDeviceException(DevFailedUtils.toString(e));
}
if ((deviceNameList != null) && (deviceNameList.length > 0)) {
String deviceName = deviceNameList[0];
ISourceDevice source = new GenericSourceDevice(deviceName + "/GetCurrentArchivedAtt");