driver-legacy/src/main/com/mongodb/DBCollection.java
protected Class<? extends DBObject> getInternalClass(final String path) {
        return objectFactory.getClassForPath(asList(path.split("\\.")));
    }
protected Class<? extends DBObject> getInternalClass(final String path) {
        return objectFactory.getClassForPath(asList(path.split("\\.")));
    }
Gets the internal class for the given path in the document hierarchy

@param path the path to map the given Class to
@return the class for a given path in the hierarchy