// The URI needs to correspond to a content repository URI
if (!(assetURI instanceof ContentURI)) {
logger.warning("URI is not a content uri " + uri);
return null;
}
ContentURI contentURI = (ContentURI)assetURI;
String root = contentURI.getRoot();
String assetPath = contentURI.getAssetPath();
// If the given server session is null, use the primary one
if (session == null) {
session = LoginManager.getPrimary();
}