@Override public void visit(ServiceEndpoint artifact) { super.visit(artifact); try { artifact.setEndpointDefinedBy(getRelationship( "endpointDefinedBy", artificerArtifact, DerivedArtifactTarget.class)); artifact.setUrl(getProperty("url")); // These have to currently be added on the subclass visitors, as they're not currently // on ServiceImplementationModelType itself. artifact.setEnd(getProperty("end")); } catch (Exception e) { throw new RuntimeException(e); } }