code: public static String getfullNameForDevice(final String deviceName) throws DevFailed {
          checkNullOrEmptyString(deviceName);
          final String[] fields = deviceName.split(DEVICE_SEPARATOR);
  
          if (deviceName.contains(DBASE_NO) || fields.length != 1) {
              return deviceName;
          } else {
              final Database db = ApiUtil.get_db_obj();
              return db.get_device_from_alias(fields[0]);
          }
      }
docs: Get the full device name
  
  @param deviceName
  @return
  @throws DevFailed