#JC-1261 Added javadocs to bb processing logic