if (serviceMapType.getLifeTime() != null) {
notAfterInactiveMinutes = serviceMapType.getLifeTime().getNotAfterInactiveMinutes();
}
MethodType method = GfacUtils.findOperationWithApplication(serviceMapType);
ApplicationType appType = method.getApplication();
ApplicationName appxbeanName = method.getApplication().getApplicationName();
String appName = new QName(appxbeanName.getTargetNamespace(), appxbeanName.getStringValue()).toString();
MethodBean methodBean = new MethodBean(method.getMethodName(), method.getMethodDescription(),
method.isSetStageOutputDataFiles(), method.isSetForceFileStagingToWorkDir(),
appType.isSetUseLEADNameListFile(), appType.isSetUseLEADNameListPropertiesFile());
// Done to convert the parameter type of enum to string which was not
// possible in JSF selectOneListbox. For inputText it works without
// doing this change
InputParameterType[] inputparams = method.getInputParameterArray();
ServiceParam[] inparam = new ServiceParam[inputparams.length];
for (int i = 0; i < inputparams.length; i++) {
inparam[i] = new ServiceParam();
InputParameterType inputParameterType = inputparams[i];
inparam[i].paramName = inputParameterType.getParameterName();
inparam[i].paramDesc = inputParameterType.getParameterDescription();
inparam[i].paramValue = inputParameterType.getParameterType().toString();
}
// Done to convert the parameter type of enum to string which was not
// possible in JSF selectOneListbox. For inputText it works without
// doing this change
OutputParameterType[] outparams = method.getOutputParameterArray();
ServiceParam[] outparam = new ServiceParam[outparams.length];
for (int i = 0; i < outparams.length; i++) {
outparam[i] = new ServiceParam();
OutputParameterType outputParameterType = outparams[i];
outparam[i].paramName = outputParameterType.getParameterName();
outparam[i].paramDesc = outputParameterType.getParameterDescription();
outparam[i].paramValue = outputParameterType.getParameterType().toString();
}
bean.setOutputParam(outparams);
bean.setInputPrm(inparam);
bean.setOutPrm(outparam);
bean.setServiceName(name);
bean.setApplicationName(appxbeanName.getStringValue());
bean.setNotAfterInactiveMinutes(notAfterInactiveMinutes);
bean.setMethodBean(methodBean);
bean.setObjectNamespace(serviceMapType.getService().getServiceName().getTargetNamespace());
return bean;