if(test.equals(request)){
docs.add(documents[i]);
String filename = documents[i].getFile().getCanonicalPath();
filename = filename.substring(publicationPath.length());
RCMLEntry entry = rc.getRCML(filename).getLatestEntry();
if ((entry != null) && (entry.getType() == RCML.co) )
checkedOut.add(entry);
else
checkedOut.add(null);
//get additional language documents
String[] langs = documents[i].getLanguages();
for(int j=0; j< langs.length; j++) {
if(!(langs[j].equals(documents[i].getLanguage()))) {
String url = documents[i].getCanonicalWebappURL().replaceFirst(".html$","_"+langs[j]+".html");
Document langDoc = docBuilder.buildDocument(documents[i].getIdentityMap(),_publication,url);
docs.add(langDoc);
filename = langDoc.getFile().getCanonicalPath();
filename = filename.substring(publicationPath.length());
entry = rc.getRCML(filename).getLatestEntry();
if ((entry != null) && (entry.getType() == RCML.co) )
checkedOut.add(entry);
else
checkedOut.add(null);
}
}