code: public static void checkDatasourcePath(String modelNodePath) {
          if (!modelNodePath.startsWith(DATASOURCE_PATH_PREFIX) && !modelNodePath.startsWith(XA_DATASOURCE_PATH_PREFIX)) {
              String msg = String.format("[%s] is not a datasource path. It must start with either [%s] or [%s]",
                      modelNodePath, DATASOURCE_PATH_PREFIX, XA_DATASOURCE_PATH_PREFIX);
              throw new IllegalArgumentException(msg);
          }
      }
docs: Checks if the {@code path} has one of the expected prefixes {@link #DATASOURCE_PATH_PREFIX} or
  {@link #XA_DATASOURCE_PATH_PREFIX}.
  
  @param modelNodePath the path to check
  @throws IllegalArgumentException is the {@code path} is not valid