code: public synchronized void createImportationDeclaration(String deviceId, String deviceType, String deviceSubType) {
          Map<String, Object> metadata = new HashMap<String, Object>();
          metadata.put(Constants.DEVICE_ID, deviceId);
          metadata.put(Constants.DEVICE_TYPE, deviceType);
          metadata.put(Constants.DEVICE_TYPE_SUB, deviceSubType);
          metadata.put("scope", "generic");
          ImportDeclaration declaration = ImportDeclarationBuilder.fromMetadata(metadata).build();
  
          importDeclarations.put(deviceId, declaration);
  
          registerImportDeclaration(declaration);
      }
docs: Create an import declaration and delegates its registration for an upper class.