String propStrVal = null;
if (name.equals("object_name")) {
name = "name";
MockRepositoryProperty pm = mockDocument.getProplist().getProperty(
name);
MockJcrValue propVal = new MockJcrValue(pm);
try {
propStrVal = propVal.getString();
} catch (IllegalStateException e) {
// TODO: Why is this exception ignored?
}
} else if (name.equals(SpiConstants.PROPNAME_DOCID)) {
name = "docid";
propStrVal = mockDocument.getDocID();
} else {
MockRepositoryProperty pm = mockDocument.getProplist().getProperty(
name);
MockJcrValue propVal = new MockJcrValue(pm);
try {
propStrVal = propVal.getString();
} catch (IllegalStateException e) {
// TODO: Why is this exception ignored?
}
}