use entryFactory instead of entryName.