state.source().set( source );
EntityTraceRecordEntity etr = builder.newInstance(); // Record is created.
}
else if( object instanceof ServiceComposite )
{
ServiceComposite service = (ServiceComposite) object;
EntityBuilder<ServiceTraceRecordEntity> builder = uow.newEntityBuilder( ServiceTraceRecordEntity.class );
ServiceTraceRecordEntity state = builder.instance();
setStandardStuff( compositeType, method, args, entryTime, durationNano, state, exception );
state.source().set( service.toString() );
ServiceTraceRecordEntity str = builder.newInstance(); // Record is created.
}
else
{
EntityBuilder<CompositeTraceRecordEntity> builder = uow.newEntityBuilder( CompositeTraceRecordEntity.class );