// Needed when creating an account (a PartyGroup)
if (isGroup) {
//serviceCtx.put("partyRole", oid.getRole()); // not used yet,maybe useful later
if (oid.hasOrganization()) {
Organization org = oid.getOrganization();
serviceCtx.put("groupName", org.getName());
}
}
GenericValue userLogin = (GenericValue) context.get("userLogin");
serviceCtx.put("userLogin", userLogin);