@Override
  public ArrayList<MavenArchetype> getLocalArchetypes(MavenToken token, @NotNull String path) throws RemoteException {
    MavenServerUtil.checkToken(token);
    try {
      ArchetypeDataSource source = getComponent(ArchetypeDataSource.class, "catalog");
      Properties properties = new Properties();
      properties.setProperty(ARCHETYPE_CATALOG_PROPERTY, path);
      ArchetypeCatalog archetypeCatalog = source.getArchetypeCatalog(properties);
      return getArchetypes(archetypeCatalog);
    }
    catch (Exception e) {
      MavenServerGlobals.getLogger().warn(e);
    }
    return new ArrayList<>();
  }
@Override
  public ArrayList<MavenArchetype> getLocalArchetypes(MavenToken token, @NotNull String path)