private ArchetypeCatalog fetchArchetypeCatalogFromWiki()
throws ArchetypeDataSourceException
{
// ArchetypeDataSource ads = (ArchetypeDataSource) lookup( ArchetypeDataSource.ROLE, "wiki" );
ArchetypeDataSource ads = new WikiArchetypeDataSource();
// fetch and parse Wiki page content
ArchetypeCatalog ac = ads.getArchetypeCatalog( new Properties() );
for ( Archetype archetype : ac.getArchetypes() )
{
if ( "".equals( archetype.getRepository() )
|| ( archetype.getRepository() != null && archetype.getRepository().indexOf( CENTRAL.substring( 7 ) ) >= 0 ) )