}
catch ( ExpressionEvaluationException e )
{
String msg = "Error evaluating the expression '" + value + "' for configuration value '" +
configuration.getName() + "'";
throw new ComponentConfigurationException( configuration, msg, e );
}
}
if ( v == null )
{
value = configuration.getAttribute( "default-value", null );
if ( value != null && value.length() > 0 )
{
try
{
v = expressionEvaluator.evaluate( value );
}
catch ( ExpressionEvaluationException e )
{
String msg = "Error evaluating the expression '" + value + "' for configuration value '" +
configuration.getName() + "'";
throw new ComponentConfigurationException( configuration, msg, e );
}
}
}
return v;
}