{
part = new SectionPart();
}
else if( definition instanceof SectionRef )
{
final SectionRef ref = (SectionRef) definition;
def = ref.getSection().target();
if( def == null )
{
final String msg = couldNotResolveSection.format( ref.getSection().text() );
throw new IllegalArgumentException( msg );
}
else
{
partParams = new HashMap<String,String>( params );
for( ISapphireParam param : ref.getParams() )
{
final String paramName = param.getName().text();
final String paramValue = param.getValue().text();
if( paramName != null && paramValue != null )