UUIDGenerator uuidGen = UUIDGenerator.getInstance();
UUID uuid = uuidGen.generateTimeBasedUUID();
requestIdentity = uuid.toString();
requestIdentity = requestIdentity.replaceAll("-", "");
ConfigSingleton configure = ConfigSingleton.getInstance();
if (_actionName != null) {
_serviceName = _actionName;
_content = _serviceResponse;
SourceBean actionBean = (SourceBean) configure.getFilteredSourceBeanAttribute("ACTIONS.ACTION", "NAME", _actionName);
_layout = (SourceBean) actionBean.getAttribute("CONFIG");
if (_layout == null) {
// if the layout is dinamically created it is an attribute of the response
_layout = (SourceBean) _serviceResponse.getAttribute("CONFIG");
}
_providerURL = "ACTION_NAME=" + _actionName + "&";
_providerUrlMap.put("ACTION_NAME", _actionName);
HashMap params = (HashMap) _serviceResponse.getAttribute("PARAMETERS_MAP");
if (params != null) {
_paramsMap = params;
_providerUrlMap.putAll(_paramsMap);
}
} // if (_actionName != null)
else if (_moduleName != null) {
_serviceName = _moduleName;
logger.debug(" Module Name: " + _moduleName);
_content = (SourceBean) _serviceResponse.getAttribute(_moduleName);
SourceBean moduleBean = (SourceBean) configure.getFilteredSourceBeanAttribute("MODULES.MODULE", "NAME", _moduleName);
if(moduleBean!=null) logger.debug(" configuration loaded");
_layout = (SourceBean) moduleBean.getAttribute("CONFIG");
if (_layout == null) {
// if the layout is dinamically created it is an attribute of the response
_layout = (SourceBean) _serviceResponse.getAttribute(_moduleName + ".CONFIG");