JavaDialectRuntimeData dialect = (JavaDialectRuntimeData) pkgRegistry.getDialectRuntimeRegistry().getDialectData( "java" );
switch ( type.getKind() ) {
case TRAIT :
try {
ClassBuilder tb = ClassBuilderFactory.getTraitBuilderService();
byte[] d = tb.buildClass( def );
String resourceName = JavaDialectRuntimeData.convertClassToResourcePath( fullName );
dialect.putClassDefinition( resourceName, d );
dialect.write( resourceName, d );
} catch ( Exception e ) {
this.results.add( new TypeDeclarationError( typeDescr,