String userName = authConfigBean.getUserName();
String password = authConfigBean.getPassword();
boolean loginStatus = false;
String authenticationServiceURL = "https://" + hostName +
StatusMonitorAgentConstants.AUTHENTICATION_ADMIN_PATH;
AuthenticationAdminStub authenticationAdminStub;
try {
authenticationAdminStub = new AuthenticationAdminStub(authenticationServiceURL);
ServiceClient client = authenticationAdminStub._getServiceClient();
Options options = client.getOptions();
options.setManageSession(true);
loginStatus = authenticationAdminStub.login(userName, password, hostName);
ServiceContext serviceContext = authenticationAdminStub.
_getServiceClient().getLastOperationContext().getServiceContext();
// String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);
String msg = "Log in client successfully logged in to the service: " + hostName;
if (log.isDebugEnabled()){
log.debug(msg);