code: public void printJavaTypeToObject(String value, JClass javaType)
        throws IOException
    {
      if (javaType.getName().equals("boolean"))
        print("new Boolean(" + value + ")");
      else if (javaType.getName().equals("byte"))
        print("new Byte(" + value + ")");
      else if (javaType.getName().equals("short"))
        print("new Short(" + value + ")");
      else if (javaType.getName().equals("int"))
        print("new Integer(" + value + ")");
      else if (javaType.getName().equals("long"))
        print("new Long(" + value + ")");
      else if (javaType.getName().equals("char"))
        print("String.valueOf(" + value + ")");
      else if (javaType.getName().equals("float"))
        print("new Float(" + value + ")");
      else if (javaType.getName().equals("double"))
        print("new Double(" + value + ")");
      else
        print(value);
    }
docs: Converts a java primitive type to a Java object.
  
  @param value
  the java expression to be converted
  @param javaType
  the type of the converted expression.