Minor fix for backward compatibility
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib@124625 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
afa0e6719a
commit
d627816f70
|
@ -177,6 +177,7 @@ public class RecordUtility {
|
|||
* @return the Record
|
||||
* @throws Exception if deserialization fails
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static Record getRecord(Map<String, ? extends Serializable> recordMap) throws Exception {
|
||||
|
||||
String className = (String) recordMap.get(Record.RECORD_TYPE);
|
||||
|
@ -189,6 +190,7 @@ public class RecordUtility {
|
|||
*/
|
||||
if(className == null){
|
||||
className = (String) recordMap.get("usageRecordType");
|
||||
((Map<String, Serializable>) recordMap).put(Record.RECORD_TYPE, className);
|
||||
}
|
||||
/* END of Patch */
|
||||
|
||||
|
|
Loading…
Reference in New Issue