@Override protected ModuleRegistrationResource instantiateResource(ArtifactRegistration registration) { return new ModuleRegistrationResource( registration.getName(), registration.getType().name(), registration.getCoordinates().toString()); }
@Override public ModuleRegistrationResource toResource(ArtifactRegistration registration) { return createResourceWithId( String.format("%s/%s", registration.getType(), registration.getName()), registration); }