ActionInfo (String actionInfoName) { if (ActionInfo.UPDATE.getActionName().equals(actionInfoName)) return ActionInfo.UPDATE; if (ActionInfo.STATUS.getActionName().equals(actionInfoName)) return ActionInfo.STATUS; return null; }