PersistenceConfiguration conf = storeMgr.getOMFContext().getPersistenceConfiguration();
if (conf.getBooleanProperty("org.jpox.readOnlyDatastore"))
{
if (conf.getStringProperty("org.jpox.readOnlyDatastoreAction").equalsIgnoreCase("EXCEPTION"))
{
throw new DatastorePermissionException(LOCALISER.msg("032004",
StringUtils.toJVMIDString(sm.getObject())));
}
else
{
if (JPOXLogger.PERSISTENCE.isDebugEnabled())