// Create the concept from type if needed
if( concept == null )
{
if(type==null)
{
throw new TransformationException("Can't create concept for property '"+ propertyName + "'. Type must be set.");
}
try
{
if( ruleLog.isTraceEnabled() )
{
ruleLog.trace("Create concept of type '" + type + "'." );
}
concept = getDomain().getModelHelper(request).createInstance(type);
if( varName != null )
{
request.setAttribute(varName, concept, request.LOCAL_SCOPE);
if( ruleLog.isTraceEnabled() )
ruleLog.trace("setAttribute( '" + varName + "', '" + type + "' )" );
}
}
catch(InstantiationException ex)
{
throw new TransformationException(ex);
}
}
// populate the concept
Iterator iter = propertyValues.entrySet().iterator();