public final < T > T loadObject ( final Class < T > clazz , final Object id ) throws Exception { return executeInTransaction ( new Runnable < T > ( ) { @ Override public T run ( final EntityManager entityManager ) { return loadObject ( entityManager , clazz , id ) ; } } ) ; }
Finds and returns the object of the given id in the persistence context .