BOC: Apiexample Adjustments for 2.0.* usage

Hi Felix,

these are my proposed changes to make ext:boc_apiexample running under ext:beautyofcode v2.0.*

Best,

tommy