public static Map<String, byte[]> getMapClasses(String path, Map<String, byte[]> store) { final List<String> keys = IoUtils.recursiveListFile(new File(path), "", filterClasses()); final Map<String, byte[]> classes = new HashMap<>(keys.size() + store.size()); for (String item : keys) { byte[] bytez = getBytes(path + CommonConstants.SEPARATOR + item); String fqn = item.substring(item.lastIndexOf(CommonConstants.MAVEN_TARGET) + CommonConstants.MAVEN_TARGET.length()); classes.put(fqn, bytez); } if (!store.isEmpty()) { for (Map.Entry<String, byte[]> entry : store.entrySet()) { classes.put(entry.getKey(), entry.getValue()); } } return classes; }