public final boolean isInitialized() {
        if (hasGravity()) {
          if (!getGravity().isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getBodiesCount(); i++) {
          if (!getBodies(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getJointsCount(); i++) {
          if (!getJoints(i).isInitialized()) {
            
            return false;
          }
        }
        return true;
      }