public <T> T createDomain(Class<T> clazz, int maxDepth, Class<?>... genericTypes) { return factory.populate(clazz, maxDepth, genericTypes); }
public <T> T createDomain(Class<T> clazz, Class<?>... genericTypes) { return factory.populate(clazz, MAX_DEPTH, genericTypes); }