logger.error( "Error while obtaining the model writer from the factory.", ex );
return null;
}
StringBuilder out = new StringBuilder();
IThingWriteContext context = new DefaultThingWriteContext( factory, false );
try {
writer.write( out, context, model );
} catch ( ThingWriteException ex ) {
logger.error( "Error while writing the model to JS.", ex );
return null;