code: public static String streamEntityName(final StreamId streamId) {
          // User defined ID
          if (streamId instanceof JpaStreamId) {
              final JpaStreamId jpaId = (JpaStreamId) streamId;
              return jpaId.getEntityName();
          }
          // Default ID
          if (streamId.isProjection()) {
              return streamId.getName();
          }
          if (streamId.getParameters().size() == 0) {
              return NoParamsStream.class.getSimpleName();
          }
          return streamId.getName() + "Stream";
      }
docs: Returns the name of the stream entity for a given stream.
  
  @param streamId
  Identifier of the stream to return a stream entity name for.
  
  @return Name of the entity (simple class name).