code: @Override
      public AnnotationDefinition convert(BELAnnotationDefinition bad) {
          if (bad == null) {
              return null;
          }
  
          AnnotationDefinition ad = CommonModelFactory.getInstance()
                  .createAnnotationDefinition(bad.getName());
          switch (bad.getAnnotationType()) {
          case LIST:
              ad.setType(AnnotationType.ENUMERATION);
              ad.setEnums(bad.getList());
              break;
          case PATTERN:
              ad.setType(AnnotationType.REGULAR_EXPRESSION);
              ad.setValue(bad.getValue());
              break;
          case URL:
              ad.setType(null);
              ad.setURL(bad.getValue());
              break;
          default:
              throw new InvalidArgument("BELAnnotationType '"
                      + bad.getAnnotationType() + "' not known.");
          }
  
          return ad;
      }
docs: {@inheritDoc}