Getting underlying implementation in JPA