throw new SmartFrogInitException("Error parsing NAME in: "+ deploymentURL, ex);
ex.printStackTrace(); throw new SmartFrogInitException("Error parsing NAME in: "+ deploymentURL+"("+ex.getMessage()+")", ex);
    public ConfigurationDescriptor (String deploymentURL) throws SmartFrogInitException {        try {            this.originalSFACT = deploymentURL;            if (deploymentURL==null) {                throw new SmartFrogInitException("Deployment URL: null");            }            String item = null;            deploymentURL = deploymentURL.trim();            tempURL = deploymentURL;            if (deploymentURL.length() < 1) throw                    new SmartFrogInitException("Deployment URL: wrong format");              //GET SUBPROCESS_NAME (6th Element)              try {                 this.setSubProcess(getAndCutLastFieldTempURL (separator));              } catch (Exception ex) {                  throw new SmartFrogInitException( "Error parsing SUBPROCESS_NAME in: "+ deploymentURL, ex);              }              //GET HOST_NAME (5th Element)              try {                  this.setHost(getAndCutLastFieldTempURL (separator));              } catch (Exception ex) {                  throw new SmartFrogInitException("Error parsing HOST in: "+ deploymentURL, ex);              }              //GET DEPLOY_REFERENCE (4th Element)              //If it contains : has to be between double quotes(")              //ex. ...:"componentOne:componentTwo":...              try {                  if (tempURL.trim().endsWith("\"")){                      tempURL=tempURL.substring(0,tempURL.lastIndexOf("\""));                     this.setDeployReference(getAndCutLastFieldTempURL("\""));                     tempURL=tempURL.substring(0,tempURL.lastIndexOf(separator));                  } else {                      this.setDeployReference(getAndCutLastFieldTempURL(separator));                  }              } catch (Exception ex) {                  throw new SmartFrogInitException("Error parsing DEPLOY_REFERENCE in: "+ deploymentURL, ex);              }              //GET URL (3rd Element)              // at this stage only "NAME":ACTION:"DEPLOY_URL" are left.              // no separator at the end.              //(Everything that is left at the end)              try {                  if (tempURL.endsWith("\"")){                      this.setUrl(tempURL.substring(tempURL.lastIndexOf(separator)+2,tempURL.length()-1));                  } else {                      this.setUrl(tempURL.substring(tempURL.lastIndexOf(separator)+1));                  }                  tempURL= tempURL.substring(0,tempURL.lastIndexOf(separator));              } catch (Exception ex) {                  throw new SmartFrogInitException("Error parsing DEPLOY_REFERENCE in: "+ deploymentURL, ex);              }            // GET NAME (1st Element)            //Check if url starts with " and extract name:            // Valid examples:            // "HOST guijarro.hpl.hp.com":rootProcess:sfDefault:display":TER:::localhost:subprocess;            // "HOST "127.0.0.1":rootProcess:sfDefault:display":TER:::localhost:subprocess;            // display:TER:::localhost:subprocess;            // :TER:::localhost:subprocess; ->Unnamed component            deploymentURL=tempURL;            tempURL=null;            try {                if (deploymentURL.startsWith("\"")) {                    setName(deploymentURL.substring(1,deploymentURL.lastIndexOf("\"")));                    tempURL = deploymentURL.substring(deploymentURL.lastIndexOf("\"")+2);                } else {                    setName(deploymentURL.substring(0,deploymentURL.indexOf(separator)));                    tempURL = deploymentURL.substring(deploymentURL.indexOf(separator)+1);                }            } catch (Exception ex) {                throw new SmartFrogInitException("Error parsing NAME in: "+ deploymentURL, ex);            }            //GET ACTION(2nd Element)            try {                this.setActionType(tempURL);            } catch (Exception ex) {                throw new SmartFrogInitException(                    "Error parsing ACTION_TYPE in: "+ tempURL, ex);            }        } catch (Throwable thr){           this.resultException = thr;           throw (SmartFrogInitException)SmartFrogInitException.forward(thr);        }    }