public static Annotation buildAnnotation(Library library, Hashtable hashTable) {
        Annotation annot = null;
        Name subtype = (Name) hashTable.get(SUBTYPE_KEY);
        if (subtype != null) {
            if (subtype.equals(SUBTYPE_LINK))
                annot = new LinkAnnotation(library, hashTable);
        }
        if (annot == null) {
            annot = new Annotation(library, hashTable);
        }
        return annot;
    }