private static String extractName ( final Field fieldReference ) { com . couchbase . client . java . repository . annotation . Field annotation = fieldReference . getAnnotation ( com . couchbase . client . java . repository . annotation . Field . class ) ; if ( annotation == null || annotation . value ( ) == null || annotation . value ( ) . isEmpty ( ) ) { return fieldReference . getName ( ) ; } else { return annotation . value ( ) ; } }
Helper method to extract the potentially aliased name of the field .