org.openbel.framework.common.enums.RelationshipType r =
source.getRelationshipType();
if (r != null)
xstmt.setRelationship(Relationship.fromValue(r.getDisplayValue()));
Object object = source.getObject();
if (object != null) {
if (object.getStatement() != null) {
XBELObject xo = new XBELObject();
StatementConverter sConverter = new StatementConverter();
// Defer to StatementConverter
xo.setStatement(sConverter.convert(object.getStatement()));
xstmt.setObject(xo);
} else if (object.getTerm() != null) {
XBELObject xo = new XBELObject();
// Defer to TermConverter
xo.setTerm(tConverter.convert(object.getTerm()));
xstmt.setObject(xo);
}
}
return xstmt;