Add virtual clone method for ctEntyty