else
{
String[] namedRefs = entityReferences.split( "\n" );
if( namedRefs.length % 2 != 0 )
{
throw new EntityStoreException( "Invalid NamedAssociation storage format" );
}
for( int idx = 0; idx < namedRefs.length; idx += 2 )
{
String name = namedRefs[idx];
String ref = namedRefs[idx + 1];
references.put( name, EntityReference.parseEntityReference( ref ) );
}
namedAssociations.put( namedAssociationType.qualifiedName(), references );
}
}
return new DefaultEntityState( desuw,
entityPrefs.get( "version", "" ),
entityPrefs.getLong( "modified", unitOfWork.currentTime() ),
identity,
status,
entityDescriptor,
properties,
associations,
manyAssociations,
namedAssociations
);
}
catch( ValueSerializationException | BackingStoreException e )
{
throw new EntityStoreException( e );
}
}