private void createDebugRecord( UnitOfWork uow, Composite composite, String message, List<Serializable> params )
{
if( composite instanceof ServiceComposite )
{
EntityBuilder<ServiceDebugRecordEntity> builder = uow.newEntityBuilder( ServiceDebugRecordEntity.class );
ServiceDebugRecordEntity state = builder.instance();
setStandardStuff( composite, message, state, params );
state.source().set( ( (ServiceComposite) composite ).identity().get() );
ServiceDebugRecordEntity slr = builder.newInstance();
}
else if( composite instanceof EntityComposite )
{
EntityBuilder<EntityDebugRecordEntity> builder = uow.newEntityBuilder( EntityDebugRecordEntity.class );
EntityDebugRecordEntity state = builder.instance();