@Path("/groups")
public JobRequest createGroup( Group group ) {
System.out.println( "-----createGroup--- , Group name:" + group.getName() + ", Group owner:" + group.getOwner() );
String id = "" + System.currentTimeMillis() + "-" + counter.incrementAndGet();
CreateGroupRequest jobRequest = new CreateGroupRequest();
jobRequest.setStatus(JobRequest.Status.ACCEPTED);
jobRequest.setJodId(id);
jobRequest.setGroupName(group.getName());
jobRequest.setOwnder(group.getOwner());
jobs.put(id, jobRequest);
createGroupRequestEvent.fire(jobRequest);
return jobRequest;