public static String[] extractTraitsFromAnnotations(String[] annotations) {
        if (annotations != null && annotations.length > 0) {
            Stream<String> annotationTraits = Stream.of(annotations)
                    .filter(annotation -> annotation.startsWith("trait.camel.apache.org/"))
                    .map(annotation -> StringHelper.after(annotation, "trait.camel.apache.org/"));
            return annotationTraits.collect(Collectors.toSet()).toArray(String[]::new);
        }
        return new String[0];
    }
@Test
    public void extractTraitsFromAnnotationsTest() {
        String[] annotations = new String[] {
                "trait.camel.apache.org/container.port=8080",
                "trait.camel.apache.org/container.port-name=custom",
                "camel.apache.org/name=MyRoute" };
        String[] result = TraitHelper.extractTraitsFromAnnotations(annotations);
        Assertions.assertNotNull(result);
        Assertions.assertEquals(2, result.length);
        Assertions.assertEquals("container.port-name=custom", result[1]);

        String[] resultEmpty = TraitHelper.extractTraitsFromAnnotations(new String[0]);
        Assertions.assertNotNull(resultEmpty);

        String[] resultNull = TraitHelper.extractTraitsFromAnnotations(null);
        Assertions.assertNotNull(resultNull);
    }