private boolean isId()

in cloud-vmware-server/src/main/java/jetbrains/buildServer/clouds/vmware/connector/VMWareApiConnectorImpl.java [167:179]


  private boolean isId(@NotNull String idName, Class instanceType){
    if (StringUtil.isEmpty(idName))
      return false;
    if (instanceType == ResourcePool.class) {
      return RESPOOL_PATTERN.matcher(idName).matches();
    } else if (instanceType == Folder.class) {
      return FOLDER_PATTERN.matcher(idName).matches();
    } else if (instanceType == VirtualMachine.class) {
      return VM_PATTERN.matcher(idName).matches();
    } else {
      return false;
    }
  }