public byte[] fileContent(String path, Revision revision, Revision pegRevision) throws ClientException {
SVNWCClient client = getSVNWCClient();
try {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
if (isURL(path)) {
client.doGetFileContents(SVNURL.parseURIEncoded(path),
JavaHLObjectFactory.getSVNRevision(pegRevision),
JavaHLObjectFactory.getSVNRevision(revision), true, baos);
} else {
client.doGetFileContents(new File(path).getAbsoluteFile(),
JavaHLObjectFactory.getSVNRevision(pegRevision),