if(config.getUsername() != null && config.getUsername().trim().length() > 0){
adminProps.setProperty(AdminClient.USERNAME, config.getUsername());
adminProps.setProperty(AdminClient.PASSWORD, config.getPassword());
}
try{
AdminClient adminClient = AdminClientFactory.createAdminClient(adminProps);
return new WebSphereServerConnection(adminClient);
}catch(Throwable e){
throw new ConnectionFailedException(e);
}
}