Managed to do it in the REST that I control...but not when I try to load the bpmn2.0 using the knowledgeBuilder.add....when I do:
kbuilder.add(ResourceFactory.newUrlResource(base_url+pack+"/"+title+".bpmn2"), ResourceType.BPMN2);
I get 401 error and because I don't know how to inject Authorization=Basic username:password in the request controled by the add method I can't correct the error.
Should I go back to the previouse version or is it fixable?