Java bean contract control facility and framework