if (params.containsKey("resource")) {
String resource = (String) params.get("resource");
String type = (String) params.get("type");
String prefix = (String) params.get("prefix");
resources.add(new RoutingResource(type, resource, prefix));
} else {
LinkedHashMap defaults = (LinkedHashMap) params.get("defaults");