class StorageUnitDaoHelper {

    public void setStorageUnitStatus(StorageUnitEntity storageUnitEntity, StorageUnitStatusEntity storageUnitStatusEntity)
    {
        // Set the storage unit status value.
        storageUnitEntity.setStatus(storageUnitStatusEntity);

        // Send a storage unit status change notification as per system configuration.
        messageNotificationEventService
            .processStorageUnitStatusChangeNotificationEvent(businessObjectDataHelper.getBusinessObjectDataKey(storageUnitEntity.getBusinessObjectData()),
                storageUnitEntity.getStorage().getName(), storageUnitStatusEntity.getCode(), null);
    }

}