class MetadataWidget extends Composite implements HasBusyIndicator {

    String getLockStatusText(final LockInfo lockInfo) {
        final String lockStatusText;

        if (lockInfo.isLocked()) {
            if (lockInfo.lockedBy().equals(currentUser)) {
                lockStatusText = MetadataConstants.INSTANCE.LockedByHintOwned();
            } else {
                lockStatusText = MetadataConstants.INSTANCE.LockedByHint() + " " + lockInfo.lockedBy();
            }
        } else {
            lockStatusText = MetadataConstants.INSTANCE.UnlockedHint();
        }

        return lockStatusText;
    }

    @Inject public  MetadataWidget(final BusyIndicatorView busyIndicatorView,
                          final ExternalLinkPresenter external);

}