in spring-registry/spring-registry-commons/src/main/java/org/apache/archiva/components/registry/commons/CommonsConfigurationRegistry.java [218:240]
public Properties getProperties( String key )
{
Configuration configuration = this.configuration.subset( key );
Properties properties = new Properties( );
for ( Iterator i = configuration.getKeys( ); i.hasNext( ); )
{
String property = (String) i.next( );
List l = configuration.getList( property );
StringBuilder sb = new StringBuilder( );
for ( Object element : l )
{
sb.append( (String) element );
sb.append( "," );
}
if ( sb.length( ) > 0 )
{
sb.deleteCharAt( sb.length( ) - 1 );
}
properties.setProperty( property, sb.toString( ) );
}
return properties;
}