code: @Override
      public <BEAN> BEAN fromJson(String json, Class<BEAN> beanType) { // are not null, already checked
          final BEAN bean = gson.fromJson(json, beanType); // if empty JSON, new-only instance
          return bean != null ? bean : newEmptyInstance(beanType);
      }
docs: ==============