private String getValuePairStringValue( Annotation annotation, AnnotationValuePairDefinition valuePairDefinition, AnnotationSource annotationSource) { Object value = annotation.getValue(valuePairDefinition.getName()); String strValue; if (value == null) { strValue = Constants.INSTANCE.advanced_domain_annotation_list_editor_message_value_not_set(); } else { strValue = annotationSource != null ? annotationSource.getValuePairSource(valuePairDefinition.getName()) : null; if (strValue == null) { strValue = Constants.INSTANCE .advanced_domain_annotation_list_editor_message_source_code_not_available(); } } return strValue; }