if (elementName.equals(SECURITY_CONTEXT)) {
OMElement myproxy = x.getFirstChildWithName(new QName(null, MYPROXY));
if (myproxy != null) {
GSISecurityContext gsiSecurityContext = new GSISecurityContext();
OMElement server = myproxy.getFirstChildWithName(new QName(null, MYPROXY_SERVER));
OMElement username = myproxy.getFirstChildWithName(new QName(null, MYPROXY_USERNAME));
OMElement password = myproxy.getFirstChildWithName(new QName(null, MYPROXY_PASSWORD));
OMElement life = myproxy.getFirstChildWithName(new QName(null, MYPROXY_LIFE));
gsiSecurityContext.setMyproxyServer(server.getText());
gsiSecurityContext.setMyproxyUserName(username.getText());
gsiSecurityContext.setMyproxyPasswd(password.getText());
gsiSecurityContext.setMyproxyLifetime(Integer.parseInt(life.getText()));
// set to context
MessageContextUtil.addContextToProperty(msgContext, GfacService.SECURITY_CONTEXT, "myproxy", gsiSecurityContext);
}
}