EntityComposite source = (EntityComposite) uow.get( (Class<?>) first(
Qi4j.FUNCTION_DESCRIPTOR_FOR.map( entity ).types() ), identity );
EntityBuilder<EntityTraceRecordEntity> builder = uow.newEntityBuilder( EntityTraceRecordEntity.class );
EntityTraceRecordEntity state = builder.instance();
setStandardStuff( compositeType, method, args, entryTime, durationNano, state, exception );
state.source().set( source );
EntityTraceRecordEntity etr = builder.newInstance(); // Record is created.
}
else if( object instanceof ServiceComposite )
{
ServiceComposite service = (ServiceComposite) object;