code: public String getInitField(FieldData recFieldData, boolean bConstantsNotVariables, boolean bThinConstants)
      {
          boolean bConstantValue = false;
          boolean bValidThinConstant = true;
          String strInitField = recFieldData.getField(FieldData.INITIAL_VALUE).getString();
          if (strInitField != null) if (strInitField.length() > 0)
          {
              if (strInitField.charAt(0) == '\"')
                  bConstantValue = true;  // This is a constant value (a string)
              if (Character.isDigit(strInitField.charAt(0)))
                  bConstantValue = true;  // This is a constant value (a number)
              if ((strInitField.equalsIgnoreCase("true")) || (strInitField.equalsIgnoreCase("false")))
                  bConstantValue = true;  // This is a constant value (a number)
              if (strInitField.startsWith("new "))
                  bConstantValue = true;  // This is a constant value (an object)
              if (strInitField.indexOf('.') != -1)
                  if (strInitField.lastIndexOf('(') <= 1) // Not found or a class cast.
                      if (!Utility.isNumeric(strInitField))
                  {
                      bConstantValue = true;  // This is a constant value (a member constant - not a function call)
                      bValidThinConstant = false;
                  }
          }
          if (bConstantsNotVariables != bConstantValue)
              strInitField = DBConstants.BLANK;          // Not asking for this type of value
          if (bThinConstants)
              if (!bValidThinConstant)
                  strInitField = DBConstants.BLANK;          // Not asking for this type of value
          return strInitField;
      }
docs: GetInitField.
  @param bConstantsNotVariables If true, return constants; if false, return only variables