in src/java/org/apache/fulcrum/yaafi/framework/context/AvalonToYaafiContextMapper.java [90:119]
public Context mapFrom( Context context, String from )
throws ContextException
{
Validate.notNull( context, "context" );
Validate.notEmpty( from, "from" );
if( AvalonPhoenixConstants.AVALON_CONTAINER_PHOENIX.equals(from) )
{
return mapFromPhoenix(context);
}
else if( AvalonFortressConstants.AVALON_CONTAINER_FORTESS.equals(from) )
{
return mapFromFortress(context);
}
else if( AvalonMerlinConstants.AVALON_CONTAINER_MERLIN.equals(from) )
{
return mapFromMerlin(context);
}
else if( AvalonYaafiConstants.AVALON_CONTAINER_YAAFI.equals(from) )
{
return mapFromMerlin(context);
}
else
{
String msg = "Don't know the following container type : " + from;
throw new IllegalArgumentException(msg);
}
}