Fixed function
This commit is contained in:
parent
d8947f2814
commit
cff16573dd
|
@ -412,12 +412,12 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
||||||
throws SchemaViolationException, AlreadyPresentException, ResourceRegistryException {
|
throws SchemaViolationException, AlreadyPresentException, ResourceRegistryException {
|
||||||
try {
|
try {
|
||||||
String type = er.getTypeName();
|
String type = er.getTypeName();
|
||||||
String json = ElementMapper.marshal(er);
|
|
||||||
UUID uuid = er.getID();
|
UUID uuid = er.getID();
|
||||||
if (uuid == null) {
|
if (uuid == null) {
|
||||||
uuid = UUIDManager.getInstance().generateValidUUID();
|
uuid = UUIDManager.getInstance().generateValidUUID();
|
||||||
er.setID(uuid);
|
er.setID(uuid);
|
||||||
}
|
}
|
||||||
|
String json = ElementMapper.marshal(er);
|
||||||
return create(type, json, uuid);
|
return create(type, json, uuid);
|
||||||
} catch (ResourceRegistryException e) {
|
} catch (ResourceRegistryException e) {
|
||||||
// logger.trace("Error Creating {}", facet, e);
|
// logger.trace("Error Creating {}", facet, e);
|
||||||
|
|
Loading…
Reference in New Issue