if (jsonTypeDetails == null) {
return null;
}
final LogicalPath jsonObjectPath = PhysicalTypeIdentifier
.getPath(jsonTypeDetails.getDeclaredByMetadataId());
final JsonMetadata jsonMetadata = (JsonMetadata) metadataService
.get(JsonMetadata.createIdentifier(jsonObject, jsonObjectPath));
if (jsonMetadata == null) {
return null;
}