stockManager.isAmountManagementEnabled(resource, TenderType.NEED);
User resourceOwner = resource.getOwner();
add(new Label(CKEY_RESOURCE_OWNER, resourceOwner == null ? "-" : resourceOwner.getDisplayName()));
DictionaryItem uomItem = resourceReader.getUnitOfMeasure(resource);
String uomTitle = uomItem == null ? "" : localizationReader.getString(uomItem);
Label availableAmountLabel = new Label(CKEY_AVAILABLE_AMOUNT, new StringResourceModel(MKEY_AMOUNT_VALUE, null, availableAmount, uomTitle));
if(availableAmount.compareTo(BigDecimal.ZERO) < 0) {
availableAmountLabel.add(new AttributeAppender("class", CLASS_WARNING));