XMLValidationError verr = null;
String subflowId = sbflwId.toValue();
if(subflowId.trim().equals(""))
verr = new XMLValidationError("ERROR", "LOGIC", "ERROR_NON_EXISTING_WORKFLOW_PROCESS_REFERENCE", subflowId, sbflwId);
Package pkg = XMLUtil.getPackage(sbflwId);
WorkflowProcess wp = null;
if(verr == null)
{
wp = XMLUtil.findWorkflowProcess(xmlInterface, pkg, subflowId);
if(wp == null && !isRemoteSubflowIdOK(subflowId) && properties.getProperty("ValidateSubFlowReferences", "true").equals("true"))
verr = new XMLValidationError("ERROR", "LOGIC", "ERROR_NON_EXISTING_WORKFLOW_PROCESS_REFERENCE", subflowId, sbflwId);