Add isType() method to Order class - TRUNK-4290