code: public LibraryTypeEnum getType() {
      if (isReference()) {
        final LibrarySet master = (LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet");
        return master.getType();
      }
      return this.libraryType;
    }
docs: Gets preferred library type
  
  @return library type, may be null.