private ResourceAdapterParams loadConfigPropertiesByPath(PortletRequest request, String rarPath) {
DeploymentManager mgr = ManagementHelper.getManagementHelper(request).getDeploymentManager();
try {
URL url = getRAR(request, rarPath).toURL();
ConnectorDeployable deployable = new ConnectorDeployable(url);
final DDBeanRoot ddBeanRoot = deployable.getDDBeanRoot();
String adapterName = null, adapterDesc = null;
String[] test = ddBeanRoot.getText("connector/display-name");
if (test != null && test.length > 0) {
adapterName = test[0];
}
test = ddBeanRoot.getText("connector/description");
if (test != null && test.length > 0) {
adapterDesc = test[0];
}
DDBean[] definitions = ddBeanRoot.getChildBean(
"connector/resourceadapter/outbound-resourceadapter/connection-definition");
List<ConfigParam> configs = new ArrayList<ConfigParam>();
if (definitions != null) {
for (DDBean definition : definitions) {
String iface = definition.getText("connectionfactory-interface")[0];