super.initParameters();
Publication _publication = this.getPublication();
ServiceSelector siteManagerSelector = null;
SiteManager siteManager = null;
Vector docs = new Vector();
Vector checkedOut = new Vector();
String request = getSourceURL();
if (request.endsWith(".html"))
request = request.substring(0, request.indexOf(".html"));
if (!request.endsWith("/"))
request = request + "/";
if (request.indexOf("webdav") > -1) {
request = request.replaceFirst("webdav", "authoring");
}
try {
siteManagerSelector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE
+ "Selector");
siteManager = (SiteManager) siteManagerSelector.select(_publication.getSiteManagerHint());
Document[] documents = siteManager.getDocuments(getDocumentFactory(),
_publication,
Publication.AUTHORING_AREA);
for (int i = 0; i < documents.length; i++) {
String test = documents[i].getCanonicalWebappURL().replaceFirst("/[^/]*.html", "");