query results in optional
fix java compat in pom