final String nametext = name.getText();
if (type != null && value != null) {
final String typetext = type.toString();
String valuetext = value.toString();
BELAnnotationType atype;
BELAnnotationDefinition ad;
if ("URL".equals(typetext)) {
atype = BELAnnotationType.URL;
ad = new BELAnnotationDefinition(nametext, atype, valuetext);