class ChangeRequestUtils {

    public String formatStatus(final ChangeRequestStatus status) {
        switch (status) {
            case ACCEPTED:
                return ts.getTranslation(LibraryConstants.AcceptedStatus);
            case REJECTED:
                return ts.getTranslation(LibraryConstants.RejectedStatus);
            case REVERTED:
                return ts.getTranslation(LibraryConstants.RevertedStatus);
            case REVERT_FAILED:
                return ts.getTranslation(LibraryConstants.RevertFailedStatus);
            case CLOSED:
                return ts.getTranslation(LibraryConstants.ClosedStatus);
            case OPEN:
            default:
                return ts.getTranslation(LibraryConstants.OpenStatus);
        }
    }

    @Inject public  ChangeRequestUtils(final TranslationService ts);

}