@RequiresSession
  public ResourceEntity findById(Long id) {
    return entityManagerProvider.get().find(ResourceEntity.class, id);
  }
Find a resource 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/ResourceDAO.java