class LanguageFacadeImpl implements LanguageFacade {

  @Inject
  private LanguageService languageService;

  @Override
  public List<Language> getLanguages() {<FILL_FUNCTION_BODY>}
}

    try{
      List<Language> languages = languageService.getLanguages();
      if (languages.isEmpty()) {
        throw new ResourceNotFoundException("No languages found");
      }
      return languages;
    } catch (ServiceException e){
      throw new ServiceRuntimeException(e);
    }

  
<no_super_class>