Object value = props.get(key); cmd.addElement("-D" + key.toString() + "=" + value.toString());
String specialParameters = SmartFrogCoreProperty.propBaseSFProcess+"D."+name+".";  if (key.startsWith(specialParameters)){ Object value = props.get(key); String keyS = key.toString().substring(specialParameters.length()); cmd.addElement("-D"+keyS+"="+value.toString());  } else {  Object value = props.get(key); cmd.addElement("-D"+key.toString()+"="+value.toString()); }
    protected void addProcessDefines(Vector cmd, Object name)        throws Exception {        Properties props = System.getProperties();        for (Enumeration e = props.keys(); e.hasMoreElements();) {            String key = e.nextElement().toString();            if ((key.startsWith(SmartFrogCoreProperty.propBase)) &&                    (!(key.startsWith(SFSecurityProperties.propBaseSecurity)))) {                if (!key.equals(SmartFrogCoreProperty.propBaseSFProcess                               +SmartFrogCoreKeys.SF_PROCESS_NAME)) {                    Object value = props.get(key);                    cmd.addElement("-D" + key.toString() + "=" +                        value.toString());                } else {                    cmd.addElement("-D" +                        (SmartFrogCoreProperty.propBaseSFProcess                        +SmartFrogCoreKeys.SF_PROCESS_NAME+"=") +                        name.toString());                }            }        }        if (SFSecurity.isSecurityOn()) {            // Pass java.security.policy            String secProp = props.getProperty("java.security.policy");            if (secProp != null) {                cmd.addElement("-Djava.security.policy=" + secProp);            }            // org.smartfrog.sfcore.security.propFile            secProp = props.getProperty(SFSecurityProperties.propPropertiesFileName);            if (secProp != null) {                cmd.addElement("-D" +                    SFSecurityProperties.propPropertiesFileName + "=" +                    secProp);            }            //org.smartfrog.sfcore.security.keyStoreName            secProp = props.getProperty(SFSecurityProperties.propKeyStoreName);            if (secProp != null) {                cmd.addElement("-D" + SFSecurityProperties.propKeyStoreName +                    "=" + secProp);            }        }    }