User user = userLocalService.getUserById(userId);
Date now = new Date();
long wallEntryId = counterLocalService.increment();
WallEntry wallEntry = wallEntryPersistence.create(wallEntryId);
wallEntry.setGroupId(groupId);
wallEntry.setCompanyId(user.getCompanyId());
wallEntry.setUserId(user.getUserId());
wallEntry.setUserName(user.getFullName());
wallEntry.setCreateDate(now);
wallEntry.setModifiedDate(now);
wallEntry.setComments(comments);
wallEntry.setPostFromIpAddress("127.0.0.1");
wallEntryPersistence.update(wallEntry, false);
// Email