JPAPersistenceService: Fixed check if filter is passed to methods and
code formatting