super.initParameters();
Publication _publication = this.getPublication();
ServiceSelector selector = null;
SiteManager siteManager = null;
DocumentBuilder docBuilder = 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+"/";
try {
//get Parameters for RC
String publicationPath = _publication.getDirectory().getCanonicalPath();
RCEnvironment rcEnvironment = RCEnvironment.getInstance(_publication.getServletContext()
.getCanonicalPath());
String rcmlDirectory = rcEnvironment.getRCMLDirectory();
rcmlDirectory = publicationPath + File.separator + rcmlDirectory;
String backupDirectory = rcEnvironment.getBackupDirectory();
backupDirectory = publicationPath + File.separator + backupDirectory;
// Initialize Revision Controller
RevisionController rc = new RevisionController(rcmlDirectory, backupDirectory, publicationPath);
selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
siteManager = (SiteManager) selector.select(_publication.getSiteManagerHint());
Document[] documents = siteManager.getDocuments(getDocumentIdentityMap(),_publication,this.getArea());
selector = (ServiceSelector) this.manager.lookup(DocumentBuilder.ROLE + "Selector");
docBuilder = (DocumentBuilder) selector.select(_publication.getDocumentBuilderHint());
for(int i=0; i< documents.length; i++) {