private static AnnotationTransformer < AuditEvent > getDefaultAnnotationTransformer ( ) { DefaultAnnotationTransformer defaultAnnotationTransformer = new DefaultAnnotationTransformer ( ) ; ObjectSerializerCommand serializerCommand = ( ObjectSerializerCommand ) PreConfigurationContext . getCommandByName ( "-objectSerializer" ) ; if ( serializerCommand . getSerializer ( ) == null ) { defaultAnnotationTransformer . setSerializer ( new ObjectToFieldsSerializer ( ) ) ; } else { defaultAnnotationTransformer . setSerializer ( serializerCommand . getSerializer ( ) ) ; } return defaultAnnotationTransformer ; }
Initializes and returns the default annotation transformer .