code: @Override
      public Map<String, String[]> getDeviceProperties(final String name, final String... propertyNames) throws DevFailed {
          Map<String, String[]> map;
          if (propertyNames.length == 0) {
              map = getProperties(PropertyType.Device, name);
          } else {
              map = getProperty(PropertyType.Device, name, propertyNames);
          }
          return map;
      }
docs: Get some properties value for a device. (execute DbGetDevicePropertyList
  on DB device)
  
  @param name
  The device name
  @param propertyNames
  The list of properties to retrieve. Empty if all
  @return
  @throws DevFailed