add method within relation to get a ttype
modify CreateRelationCommand.java to deal with