Added JPA persistence for provider
added javadoc