Importing the old osjava code; moved over from Google Code