JavaDialectRuntimeData dialect = (JavaDialectRuntimeData) pkgRegistry.getDialectRuntimeRegistry().getDialectData( "java" );
switch ( type.getKind() ) {
case TRAIT :
try {
ClassBuilder tb = this.configuration.getClassBuilderFactory().getTraitBuilder();
byte[] d = tb.buildClass( def );
String resourceName = JavaDialectRuntimeData.convertClassToResourcePath( fullName );
dialect.putClassDefinition( resourceName, d );
if ( ruleBase != null ) {
ruleBase.registerAndLoadTypeDefinition( fullName, d );
} else {