code: public static SamlMetadataUIInfo locateMetadataUserInterfaceForEntityId(final MetadataResolverAdapter metadataAdapter,
                                                                              final String entityId, final RegisteredService registeredService, final HttpServletRequest requestContext) {
          val entityDescriptor = metadataAdapter.getEntityDescriptorForEntityId(entityId);
          return locateMetadataUserInterfaceForEntityId(entityDescriptor, entityId, registeredService, requestContext);
      }
docs: Locate MDUI for entity id simple metadata ui info.
  
  @param metadataAdapter   the metadata adapter
  @param entityId          the entity id
  @param registeredService the registered service
  @param requestContext    the request context
  @return the simple metadata ui info