jobgraphbuilder refactor and javadoc