Alternatively, make MCTravelAgent extend AbstractionObject, then you can just make this line e.setPortalTravelAgent((TravelAgent) travelAgent.getHandle());