private void configureController (InputController controller){
        String ctrlClassName = this.getClass().getName();
        Configurator config = context.getConfigurator();
        
        Map<String,Map<String,? extends Object>> ctrlsMap = 
                (Map<String,Map<String,? extends Object>>) config.getControllersMap();
        
        if(ctrlsMap != null){
            Map<String, Object> map = (Map<String, Object>) ctrlsMap.get(ctrlClassName);
            if(map != null){
                String inputPattern = (String) map.get("inputPattern");
                Pattern pattern = (inputPattern != null) ? 
                        Pattern.compile(inputPattern) : 
                        Pattern.compile(".*");
                controller.setInputPattern(pattern);
                String flag = (String)map.get("enabled");
                Boolean enabled = Boolean.valueOf((flag != null) ? flag : "true");
                controller.setEnabled(enabled);
            }
        }        
    }