IWorkflowServiceClient client = bpmFactory_.getWorkflowServiceClient();
char[] passwordCharArray = null;
if(password != null) {
passwordCharArray = password.toCharArray();
}
IBPMContext ctx = null;
try {
ctx =
(IBPMContext) bpmFactory_.getBPMUserAuthenticationService().authenticate(userName, passwordCharArray, authenticationContext);
} catch (BPMException e) {
e.printStackTrace();