static void convertFieldBytecode2Js(JavaClass classBytecode,
                                       PrintWriter print,
                                       ArrayList<String> toConvertClasses)
                                                                          throws ClassFormatException,
                                                                          IOException,
                                                                          ClassNotFoundException
   {
      Field[] fields = classBytecode.getFields();
      ArrayList<Field> notStatic = new ArrayList<>();
      ArrayList<Field> isStatic = new ArrayList<>();
      for (int i = 0; i < fields.length; i++)
      {
         Field field = fields[i];

         if (field.isStatic())
         {
            isStatic.add(field);
         }
         else
         {
            notStatic.add(field);
         }

      }
      print.println("       fields : {");
      for (int i = 0; i < notStatic.size(); i++)
      {
         Field field = notStatic.get(i);
         String signature = field.getGenericSignature();
         if (signature == null)
         {
            signature = field.getSignature();
         }
         print.println("         '" + field.getName() + "' : {signature: '" + signature + "', isStatic: false}");
         if (i < notStatic.size() - 1)
         {
            print.println(",");
         }
         // TODO check array too
         String typeSignature = field.getType().getSignature();
         if (typeSignature.startsWith("L"))
         {
            typeSignature = typeSignature.replaceAll("bz/davide/dmjsjvm/system/", "");
            typeSignature = typeSignature.substring(1);
            typeSignature = typeSignature.substring(0, typeSignature.length() - 1);
            toConvertClasses.add(typeSignature);
         }
      }
      print.println("       },");
      print.println("       static_fields : {");
      for (int i = 0; i < isStatic.size(); i++)
      {
         Field field = isStatic.get(i);
         print.println("         '" + field.getName() + "' : null");
      }
      print.println("       },");
   }