private HashSet<MavenArchetype> getInternalArchetypes()
    throws RemoteException, ComponentLookupException {
    HashSet<MavenArchetype> result = new HashSet<>();

    ArchetypeManager manager = myContainer.lookup(ArchetypeManager.class);
    ArchetypeCatalog internalCatalog = manager.getInternalCatalog();

    for (Archetype archetype : internalCatalog.getArchetypes()) {
      result.add(new MavenArchetype(archetype.getGroupId(),
                                    archetype.getArtifactId(),
                                    archetype.getVersion(),
                                    archetype.getRepository(),
                                    archetype.getDescription()));
    }
    return result;
  }
private HashSet<MavenArchetype> getInternalArchetypes()