I have a question about integration. I am working on a Rest webservice application. My applications calls multiple services. I get the configuration about the endpoint and other information from an XML file. This works as long as it is a http request to a service. But we do have legacy applications that we should call from our rest services. Those legacy applications are exposed as a jar or anything but not http. The details about the jar file will be loaded into the same XML configuration where I have the web services information. I would need to call some of the classes in those legacy apps. What would be the ideal way of leveraging the configuration information and call the legacy apps?