public static Map<Pattern,Processor> mapUrlToProcessor(Map<String,Object> beans){
		if(beans == null)
			return null;
		Map<Pattern,Processor> urlProcessorMapping = new HashMap<Pattern,Processor>();
		
		for(String beanName : beans.keySet()){
			Object bean = beans.get(beanName);
			for(Method m : bean.getClass().getMethods()){
				try {
					if(isActionMethod(m)){
						Action action = m.getAnnotation(Action.class);
						Pattern pattern = generatePattern(action.value());
						Processor processor = new Processor(beanName,m);
						urlProcessorMapping.put(pattern, processor);
					}
				} catch (ActionAnnotationConfigException e) {
					e.printStackTrace();
				}
			}
		}
		return urlProcessorMapping;
	}