Changed the clone method to ObjectUtils.clone.