}
String parts[] = strippedSubject.split("/");
PID pid = new PID(parts[0]);
String subjectURI;
if (parts.length == 1) {
subjectURI = pid.toURI();
} else if (parts.length == 2) {
subjectURI = pid.toURI() + "/" + parts[1]; // add datastream
} else {
logger.warn("Invalid subject argument for getRelationships: " + subject + ". Should be pid or datastream (URI form optional");
subjectURI = null;