public ValidationResult validate(String pid) {
if (pid == null) {
throw new NullPointerException("pid may not be null.");
}
ObjectInfo object = null;
try {
object = objectSource.getValidationObject(pid);
} catch (ObjectSourceException e) {
// This falls into the case of object==null.