throws OperationalStringException {
if(opStringUrl == null)
throw new IllegalArgumentException("OperationalString URL cannot be null");
DeploymentResult deploymentResult;
try {
OAR oar;
URL opStringUrlToUse = opStringUrl;
if(opStringUrl.toExternalForm().endsWith("oar")) {
oar = new OAR(opStringUrl);
StringBuilder sb = new StringBuilder();
sb.append("jar:").append(oar.getURL().toExternalForm()).append("!/").append(oar.getOpStringName());
opStringUrlToUse = new URL(sb.toString());
}
OperationalString[] opStrings = opStringLoader.parseOperationalString(opStringUrlToUse);
if(opStrings != null && opStrings.length>0) {
deploymentResult = deploy(opStrings[0], listener);