String (RepositoryLibraryProperties props) { return Stream.of(props.getGroupId(), props.getArtifactId()) .flatMap(s -> Stream.of(s.split("[.:-]"))) .distinct() .filter(s -> !s.equals("com") && !s.equals("org")) .collect(Collectors.joining(".")); }