throws XmlException {
ApplicationDescriptionType applicationDescriptionType = ApplicationDescriptionDocument.Factory
.parse(appDescStr).getApplicationDescription();
ApplicationBean appBean = new ApplicationBean();
appBean.setHostName(applicationDescriptionType
.getDeploymentDescription().getHostName());
ApplicationName appXbeanName = applicationDescriptionType
.getApplicationName();
appBean.setApplicationName(appXbeanName.getStringValue());
appBean.setObjectNamespace(appXbeanName.getTargetNamespace());
appBean.setExecutable(applicationDescriptionType
.getDeploymentDescription().getExecutable());
appBean.setWorkDir(applicationDescriptionType
.getDeploymentDescription().getWorkDir());
appBean.setTmpDir(applicationDescriptionType.getDeploymentDescription()
.getTmpDir());
if (applicationDescriptionType.isSetProject()) {
appBean.setProjectName(applicationDescriptionType.getProject()
.getProjectName());
}
if (applicationDescriptionType.getJobType() != null) {
appBean.setJobType(applicationDescriptionType.getJobType()
.toString());
}
if (applicationDescriptionType.getQueue() != null) {
appBean.setQueue(applicationDescriptionType.getQueue()
.getQueueName());
}
if (applicationDescriptionType.isSetCount()) {
appBean.setPcount(applicationDescriptionType.getCount());
}
if (applicationDescriptionType.isSetMaxWallTime()) {
appBean.setMaxWallTime(applicationDescriptionType.getMaxWallTime());
}
if (applicationDescriptionType.isSetMinMemory()) {
appBean.setMinMemory(applicationDescriptionType.getMinMemory());
}
if (applicationDescriptionType.getHostCount() > 0) {
appBean.setHostCount(applicationDescriptionType.getHostCount());
}
if (applicationDescriptionType.getRslparmArray() != null) {
RSLParmType[] rslParmType = applicationDescriptionType
.getRslparmArray();
for (RSLParmType rslParmType2 : rslParmType) {
appBean.setRslparmName(rslParmType2.getName());
appBean.setRslparmValue(rslParmType2.getStringValue());
}
}
if (applicationDescriptionType.getDeploymentDescription()
.getLeadNameListFile() != null) {
appBean.setLeadNameListFile(applicationDescriptionType
.getDeploymentDescription().getLeadNameListFile());
}
return appBean;
}