class OwnLocalResources {

  public Pair<String,Path> splitTagAndBasename(Path path){

    String name = path.getName();
    Path parent = path.getParent();

    if(name.startsWith(LR_PREFIX) == false){
      return null;
    }

    name = name.substring(LR_PREFIX.length());
    int underscore = name.indexOf(LR_TAG_DELIM);

    if(underscore == -1){
      return null;
    }

    String tag = name.substring(0, underscore);
    String basename = name.substring(underscore + 1);

    if(LR_ALL_TAGS.contains(tag) == false){
      return null;
    }


    return new Pair<>(tag, new Path(parent, basename));
  }

  public  OwnLocalResources(String thisNodeTag);
  public  OwnLocalResources();

}