The JBI descriptor is read by the CDK as a String to replace all declared placeholders by their values, next this JBI descriptor as String is converted into an InputStream before to be parsed by petals-cdk-jbidescriptor.
A String has not to be read through an InputStream, but through a Reader.
So, it is needed to add an API to petals-cdk-jbidescriptor to parse a JBI descriptor available as a Reader
The JBI descriptor is read by the CDK as a String to replace all declared placeholders by their values, next this JBI descriptor as String is converted into an InputStream before to be parsed by petals-cdk-jbidescriptor.
A String has not to be read through an InputStream, but through a Reader.
So, it is needed to add an API to petals-cdk-jbidescriptor to parse a JBI descriptor available as a Reader