core/src/main/java/io/fabric8/maven/core/util/ProfileUtil.java
public static List<Profile> fromYaml(InputStream is) throws IOException {
        TypeReference<List<Profile>> typeRef = new TypeReference<List<Profile>>() {};
        return mapper.readValue(is, typeRef);
    }
public static List<Profile> fromYaml(InputStream is) throws IOException {
        TypeReference<List<Profile>> typeRef = new TypeReference<List<Profile>>() {};
        return mapper.readValue(is, typeRef);
    }
Load a profile from an input stream. This must be in YAML format

@param is inputstream to read the profile from
@return the de-serialized profile
@throws IOException if deserialization fails