Date now = new Date();
long classNameId = classNameLocalService.getClassNameId(className);
long notfoundId = counterLocalService.increment(NotFound.class.getName());
NotFound notFound = notFoundPersistence.create(notfoundId);
notFound.setCompanyId(serviceContext.getCompanyId());
notFound.setGroupId(serviceContext.getScopeGroupId());
notFound.setUserId(userId);
notFound.setCreateDate(now);
notFound.setClassNameId(classNameId);
notFound.setKeywords(keywords);
notFoundPersistence.update(notFound);
return notFound;
}