}
if (signatureAnnotation == null) {
return null;
}
ArrayEncodedValue signatureValues = null;
for (AnnotationElement annotationElement: signatureAnnotation.getElements()) {
if (annotationElement.getName().equals("value")) {
EncodedValue encodedValue = annotationElement.getValue();
if (encodedValue.getValueType() != ValueType.ARRAY) {
return null;
}
signatureValues = (ArrayEncodedValue)encodedValue;
break;
}
}
if (signatureValues == null) {
return null;
}
StringBuilder sb = new StringBuilder();
for (EncodedValue signatureValue: signatureValues.getValue()) {
if (signatureValue.getValueType() != ValueType.STRING) {
return null;
}
sb.append(((StringEncodedValue)signatureValue).getValue());
}