public < T > void delete ( T bean ) throws StorageException { EntityManager entityManager = getActiveEntityManager ( ) ; try { entityManager . remove ( bean ) ; } catch ( Throwable t ) { logger . error ( t . getMessage ( ) , t ) ; throw new StorageException ( t ) ; } }
Delete using bean