[JBPM-4519] Back-port the changes made in JBossUserGroupCallbackImpl to jBPM6.0.x branch, from [JBPM-4518]