code: public static Map<String, String[]> getAssetMap(Configuration configuration) {
          Map<String, String[]> assetsMap = Maps.newLinkedHashMap();
          for (String key : configuration.getPropertyNames()) {
              if (key.startsWith(ASSETS_CONF_PREFIX) || key.equals("resource.assets")) {
                  String routePath = key.replaceFirst("^resource\\.assets", "");
                  if (routePath.startsWith(".")) {
                      routePath = routePath.substring(1);
                  } else if (StringUtils.isBlank(routePath)) {
                      routePath = "assets";
                  }
  
                  if (routePath.endsWith("/")) {
                      routePath = routePath.substring(0, routePath.lastIndexOf("/"));
                  }
  
                  String value = (String) configuration.getProperty(key);
                  String[] uris = value.split(",");
                  List<String> uriList = Lists.newArrayList();
                  for (String uri : uris) {
                      uriList.add(uri.endsWith("/") ? uri : uri + "/");
                  }
                  if (StringUtils.isNotBlank(value)) {
                      String[] _uris = assetsMap.get(routePath);
                      if (_uris == null) {
                          assetsMap.put(routePath, uriList.toArray(uris));
                      } else {
                          assetsMap.put(routePath, ArrayUtils.addAll(_uris, uriList.toArray(uris)));
                      }
                  }
  
              }
          }
          return assetsMap;
      }
docs: <p>getAssetMap.</p>
  
  @param configuration a {@link javax.ws.rs.core.Configuration} object.
  @return a {@link java.util.Map} object.