public Share createShare(Principal principal, boolean enabled,
long timeToLive, String eventType, String description,
long groupId) {
Share share = newShare();
define(share, UUID.randomUUID().toString(), description, System
.currentTimeMillis(), defaultTimeToIdle, timeToLive, eventType,
"Share", null);
share.setGroup(new ExperimenterGroup(groupId, false));
share.setActive(enabled);
share.setData(new byte[] {});
share.setItemCount(0L);
CreationRequest req = new CreationRequest();
req.principal = principal;
return (Share) createSession(req, share);
}