ExperimenterGroup group = groupProxy(groupName);
final ExperimenterGroup group = groupProxy(groupName);   final EventContext ec = getSecuritySystem().getEventContext(); if ( ! ec.getMemberOfGroupsList().contains(group.getId()) && ! ec.isCurrentUserAdmin() ) throw new SecurityViolation("Cannot change group for:"+iObject);
	public void changeGroup(IObject iObject, String groupName) {		final LocalUpdate update = iUpdate;		// should take a group		final IObject copy = iQuery.get(iObject.getClass(), iObject.getId());		ExperimenterGroup group = groupProxy(groupName);		copy.getDetails().setGroup(group);		getSecuritySystem().doAction(copy, new SecureAction() {			public IObject updateObject(IObject obj) {				update.flush();				return null;			}		});	}