Java enum conversion micro-framework