File file = ((NativeBroker)context.getBroker()).getCollectionBinaryFileFsPath(doc.getURI());
RepoPackageLoader loader = null;
if (repoURI != null)
loader = new RepoPackageLoader(repoURI);
Deployment deployment = new Deployment(context.getBroker());
return deployment.installAndDeploy(file, loader);
} catch (PackageException e) {
throw new XPathException(this, EXPathErrorCode.EXPDY007, e.getMessage());
} catch (IOException e) {
throw new XPathException(this, EXPathErrorCode.EXPDY007, e.getMessage());
} catch (PermissionDeniedException e) {