ServerInfo serverInfo = new ServerInfo(null, registeredHost.getType().getHostAddress());
Cluster pbsCluster = null;
try {
TokenizedSSHAuthInfo tokenizedSSHAuthInfo = new TokenizedSSHAuthInfo(requestData);
String installedParentPath = "/";
if (((SSHHostType) registeredHost.getType()).getHpcResource()) {
installedParentPath = ((HpcApplicationDeploymentType)
jobExecutionContext.getApplicationContext().getApplicationDeploymentDescription().getType()).getInstalledParentPath();
}
SSHCredential credentials = tokenizedSSHAuthInfo.getCredentials();// this is just a call to get and set credentials in to this object,data will be used
serverInfo.setUserName(credentials.getPortalUserName());
// inside the pbsCluser object
pbsCluster = new PBSCluster(serverInfo, tokenizedSSHAuthInfo,
CommonUtils.getPBSJobManager(installedParentPath));