throw new ObjectIntegrityException("contentSrc must not be absolute");
}
try {
// Normalize the IRI to resolve percent-encoding and
// backtracking (e.g. "../")
NormalizedURI nUri = new NormalizedURI(m_tempDir.toURI().toString() + contentSrc.toString());
nUri.normalize();
File f = new File(nUri.toURI());
if (f.getParentFile().equals(m_tempDir)) {
return f;
} else {
throw new ObjectIntegrityException(contentSrc.toString()
+ " is not a valid path.");