while ( tokenizer.hasMoreTokens( ) )
{
String prefix = tokenizer.nextToken( ).trim( );
String classname = props.getProperty( prefix + _CLASS );
PortletService service = ( PortletService ) Class.forName( classname ).newInstance( );
if ( info )
{
__log.info( "Initializing service: " + service.getServiceName( ) );
}
try
{
service.init( new PortletServiceConfigImpl( prefix, props, servletConfig, _application ) );
_services.put( service.getServiceName( ), service );
}
catch ( Exception e )
{
__log.error( "Unable to initialize service: " + prefix, e );
_unavailables.put( prefix, service );