code: public static <T> T getResourceFromJson(Class clazz, JsonObject jsonEntity) {
          return (T) gson.fromJson(jsonEntity, clazz);
      }
docs: Static method that transforms a Json Object in a MP Resource.
  
  @param clazz             Java Class type of the resource
  @param jsonEntity        JsonObject to be transformed
  @param <T>
  @return