Plummed the mode and created a translater to java enum