code: public String findConnectorPropertyString(String desiredPropertyName, String defaultValue) {
  
          String retVal = defaultValue;
          String name = null;
          ConnectorProperty property = null;
  
          Enumeration<Object> e = this.elements();
          while (e.hasMoreElements()) {
  
              property = (ConnectorProperty) e.nextElement();
              name = property.getName();
  
              if (name.equals(desiredPropertyName)) {
                  retVal = (String) property.getValue();
              }
  
          }
  
          return retVal;
  
      }
docs: Given this ConnectorProperties Vector, find the String identified by the
  input desiredPropertyName. If not found, return the defaultValue.
  
  @param desiredPropertyName Name of com.ibm.ejs.j2c.ConnectorProperty entry to look for.
  @param defaultValue value to return if the desiredPropertyName is not found, or its value is invalid.
  @return String