Supporting mixing the LDAP and JPA stores. Added more validations and updated test cases.