if ( !Strings.isNullOrEmpty( format.pattern() ) ) {
source.println();
source.print( ".setPattern(\"%s\")", format.pattern() );
}
source.println();
source.print( ".setShape(%s.%s)", Shape.class.getCanonicalName(), format.shape().name() );
if ( !Strings.isNullOrEmpty( format.locale() ) && !JsonFormat.DEFAULT_LOCALE.equals( format.locale() ) ) {
logger.log( Type.WARN, "JsonFormat.locale is not supported by default" );
source.println();
source.print( ".setLocale(\"%s\")", format.locale() );
}