Code from Java Virtual Machine by Jon Meyer & Troy Downing Copyright (c) 1997 by O'Reilly & Associates. Reprinted with the permission of O'Reilly Media, Inc.