@Override
public Map<String, Object> getConfigurationFiles(String versionId, List<String> profileIds, String filename) {
Pattern pattern = Pattern.compile(filename);
Map<String, Object> answer = new TreeMap<String, Object>();
Version version = profileService.getVersion(versionId);
for (String profileId : profileIds) {
Profile profile = version.getRequiredProfile(profileId);
if (profile != null) {
Map<String, String> files = new TreeMap<String, String>();
Map<String, byte[]> configs = profile.getFileConfigurations();
for (Map.Entry<String, byte[]> configEntry : configs.entrySet()) {