@RequiresSession
  public ResourceTypeEntity findById(Integer id) {
    return entityManagerProvider.get().find(ResourceTypeEntity.class, id);
  }
Find a resource type with the given id.

@param id  type id

@return  a matching resource type or null
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ResourceTypeDAO.java