code: public CompositeType getCompositeType() {
          return CompositeTypeBuilder.create(CompositeObject.class, metadata, typeMetadata -> typeMetadata.getAnnotatedType().getAnnotatedElement());
      }
docs: Convert this set into a composite type.
  
  @return The composite type.