PersistentGroup getInstance methods improved by using java8