Added Java B impl