sample script for http://stackoverflow.com/questions/18933387/null-pointer-exception-while-iterating-over-a-cypher-query