container/profiles/src/main/java/org/mobicents/slee/container/deployment/profile/jpa/JPAProfileEntityFramework.java
public ProfileEntity findProfile(String profileTable, String profileName) {

		EntityManager em = getEntityManager();
		Query query = em.createQuery(
				"FROM " + profileEntityClassName
						+ " WHERE tableName = ?1 AND profileName = ?2")
				.setParameter(1, profileTable).setParameter(2, profileName);

		List<?> resultList = query.getResultList();
		if (resultList.isEmpty()) {
			return null;
		} else {
			return (ProfileEntity) resultList.get(0);
		}
	}
public ProfileEntity findProfile(String profileTable, String profileName) {

		EntityManager em = getEntityManager();
		Query query = em.createQuery(
				"FROM " + profileEntityClassName
						+ " WHERE tableName = ?1 AND profileName = ?2")
				.setParameter(1, profileTable).setParameter(2, profileName);

		List<?> resultList = query.getResultList();
		if (resultList.isEmpty()) {
			return null;
		} else {
			return (ProfileEntity) resultList.get(0);
		}
	}
public ProfileEntity findProfile ( String profileTable , String profileName ) { EntityManager em = getEntityManager ( ) ; Query query = em . createQuery ( "FROM " + profileEntityClassName + " WHERE tableName = ?1 AND profileName = ?2" ) . setParameter ( 1 , profileTable ) . setParameter ( 2 , profileName ) ; List < ? > resultList = query . getResultList ( ) ; if ( resultList . isEmpty ( ) ) { return null ; } else { return ( ProfileEntity ) resultList . get ( 0 ) ; } }
/*
(non-Javadoc)

@see
org.mobicents.slee.container.component.profile.ProfileEntityFramework
#findProfile(java.lang.String, java.lang.String)
/ * ( non - Javadoc )