code: @Deprecated
      public Class<?> getClassFromCollection(final String collection) {
          final Set<MappedClass> mcs = mappedClassesByCollection.get(collection);
          if (mcs == null || mcs.isEmpty()) {
              throw new MappingException(format("The collection '%s' is not mapped to a java class.", collection));
          }
          if (mcs.size() > 1) {
              if (LOG.isInfoEnabled()) {
                  LOG.info(format("Found more than one class mapped to collection '%s'%s", collection, mcs));
              }
          }
          return mcs.iterator().next().getClazz();
      }
docs: Looks up the class mapped to a named collection.
  
  @param collection the collection name
  @return the Class mapped to this collection name
  @morphia.internal
  @deprecated no replacement is planned